Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Logging using LOGGER.log(level, message, params) when params are an empty array, we get this exception:
SEVERE [global] java.lang.ArrayIndexOutOfBoundsException: 0 at org.netbeans.modules.timers.Install$TimerHandler.publish(Install.java:115) at java.util.logging.Logger.log(Unknown Source) at java.util.logging.Logger.doLog(Unknown Source) at java.util.logging.Logger.log(Unknown Source)
Line
if (args == null || args[0] == null) return;
assumes non-empty args. Can be probably fixed using:
if (args == null || args.length == 0 || args[0] == null) return;