Re: [OpenWrt-Devel] [PATCH 1/4 v3] luci2: fix null pointer exception

2014-11-22 Thread Alexandru Ardelean
[quick idea/suggestion] What about just doing ? : if (val == null) return; On Sat, Nov 22, 2014 at 3:47 AM, Álvaro Fernández Rojas wrote: > This fixes system/system not properly loading due to themes being null. > > Signed-off-by: Álvaro Fernández Rojas > --- > v3: follow conventions as st

[OpenWrt-Devel] [PATCH 1/4 v3] luci2: fix null pointer exception

2014-11-21 Thread Álvaro Fernández Rojas
This fixes system/system not properly loading due to themes being null. Signed-off-by: Álvaro Fernández Rojas --- v3: follow conventions as stated by rmilecki v2: fix broken validation diff --git a/luci2/htdocs/luci2/luci2.js b/luci2/htdocs/luci2/luci2.js index 040f1e5..a2f10af 100644 --- a/luci