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

Rafał Miłecki zajec5 at gmail.com
Fri Nov 21 01:44:14 EST 2014


On 21 November 2014 03:01, Álvaro Fernández Rojas <noltari at gmail.com> wrote:
> +                               if(val != null) {

Please follow the standard (whatever it is) and use a space after "if".


> +                                       if ((val.length == 0 && !d.opt))

Btw. you could drop the extra pair of braces there :)
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list