You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "ARUNAVA SINHA (JIRA)" <ji...@apache.org> on 2018/11/14 06:01:00 UTC

[jira] [Created] (NETBEANS-1674) NPE thrown while formatting the switch expression

ARUNAVA SINHA created NETBEANS-1674:
---------------------------------------

             Summary: NPE thrown while formatting the switch expression
                 Key: NETBEANS-1674
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1674
             Project: NetBeans
          Issue Type: Bug
            Reporter: ARUNAVA SINHA
            Assignee: ARUNAVA SINHA


switch (day) {
 case MONDAY, FRIDAY, SUNDAY -> System.out.println(6);
         case TUESDAY -> System.out.println(7);
 case THURSDAY, SATURDAY -> System.out.println(8);
              case WEDNESDAY -> System.out.println(9);
}

On trying to format this switch-case code, Null pointer exception is being thrown



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists