This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[custom build of 20041015 sources; JDK 1.4.2_04] I typed an innocent code construct: List strings = new ArrayList(); while (Iterator it = strings. Code completion came up. The following NPE was thrown shortly after that: java.lang.NullPointerException at org.netbeans.modules.javacore.JMManager.getSource ElementIfExists(JMManager.java:1251) at org.netbeans.modules.editor.java.JMIUtils.getSour ceElementIfExists(JMIUtils.java:688) at org.netbeans.modules.editor.java.NbJMICompletionJ avaDoc$JMIParsingThread.findOverridenMethod (NbJMICompletionJavaDoc.java:367) at org.netbeans.modules.editor.java.NbJMICompletionJ avaDoc$JMIParsingThread.setFeature (NbJMICompletionJavaDoc.java:500) at org.netbeans.modules.editor.java.NbJMICompletionJ avaDoc$JMIParsingThread.run (NbJMICompletionJavaDoc.java:599) at org.openide.util.Task.run (Task.java:136) at org.openide.util.RequestProcessor$Task.run (RequestProcessor.java:330) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:686)
Seems that editor passes null to JMManager.getSourceElementIfExists(). This is probably a duplicate (or a consequence) of 50537.
Already fixed. Thanks for the report *** This issue has been marked as a duplicate of 50537 ***
Verified duplicate.
*** Issue 50560 has been marked as a duplicate of this issue. ***