[ 
https://issues.apache.org/jira/browse/NETBEANS-2350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-2350:
-------------------------------------
    Labels: pull-request-available  (was: )

> Null pointer exception while doing auto complete in rule switch block
> ---------------------------------------------------------------------
>
>                 Key: NETBEANS-2350
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2350
>             Project: NetBeans
>          Issue Type: Bug
>            Reporter: vikas kumar prabhakar
>            Assignee: vikas kumar prabhakar
>            Priority: Major
>              Labels: pull-request-available
>
> Null pointer exception while doing auto complete in rule switch block
> Code scenario:
> enum Days\{MON, TUES, WED, THUR, FRI};
> private static void test1(Days day) {
> switch (day)
> { case FRI -> 
> System.out.println("javaapplication2.JavaApplication2.test1()");  <Caret 
> position>   --> Auto complete press 'Ctrl+Space' throw Null pointer exception 
> }
> }
>  
>  
> java.lang.NullPointerException
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.insideSwitch(JavaCompletionTask.java:2296)
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.resolve(JavaCompletionTask.java:412)
> at org.netbeans.modules.java.completion.BaseTask.run(BaseTask.java:93)
> at 
> org.netbeans.modules.java.completion.JavaCompletionTask.run(JavaCompletionTask.java:60)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
> at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130)
> at 
> org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
> at 
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
> at 
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
> at 
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
> at 
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
> Caused: org.netbeans.modules.parsing.spi.ParseException
> at 
> org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186)
> at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)
> [catch] at 
> org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:193)
> at 
> org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
> at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
> at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
> at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
> at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



--
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

Reply via email to