[ https://issues.apache.org/jira/browse/NETBEANS-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frantisek Sodomka updated NETBEANS-450: --------------------------------------- Description: Logging {{LOGGER.log(level, message, params);}} when {{params}} are an empty array, we get this exception: {code} 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) {code} Line {code} if (args == null || args[0] == null) return; {code} assumes non-empty args. Can be probably fixed using: {code} if (args == null || args.length == 0 || args[0] == null) return; {code} was: When logging we get this exception: {code} 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) {code} Line {code} if (args == null || args[0] == null) return; {code} assumes non-empty args. Can be fixed using: {code} if (args == null || args.length == 0 || args[0] == null) return; {code} > Install$TimerHandler.publish() throws ArrayIndexOutOfBoundsException > -------------------------------------------------------------------- > > Key: NETBEANS-450 > URL: https://issues.apache.org/jira/browse/NETBEANS-450 > Project: NetBeans > Issue Type: Bug > Reporter: Frantisek Sodomka > Priority: Major > > Logging {{LOGGER.log(level, message, params);}} when {{params}} are an empty > array, we get this exception: > {code} > 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) > {code} > Line > {code} > if (args == null || args[0] == null) return; > {code} > assumes non-empty args. Can be probably fixed using: > {code} > if (args == null || args.length == 0 || args[0] == null) return; > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists