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.

Bug 59747 - Code completion for library without docs throws NPE
Summary: Code completion for library without docs throws NPE
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
: 60283 60749 60773 61182 (view as bug list)
Depends on:
Blocks: 61140
  Show dependency tree
 
Reported: 2005-06-08 15:56 UTC by Martin Grebac
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2005-06-08 15:56:24 UTC
Create library without javadoc, add library to project, create file, try the
code completion. 

Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
org.netbeans.modules.editor.java.NbJMICompletionJavaDoc$JMIParsingThread.getDocumentedAnnotations(NbJMICompletionJavaDoc.java:558)
org.netbeans.modules.editor.java.NbJMICompletionJavaDoc$JMIParsingThread.setClass(NbJMICompletionJavaDoc.java:476)
org.netbeans.modules.editor.java.NbJMICompletionJavaDoc$JMIParsingThread.run(NbJMICompletionJavaDoc.java:655)
	at org.openide.util.Task.run(Task.java:207)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:419)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:794)

is thrown.
Comment 1 Martin Adamek 2005-06-23 11:41:36 UTC
When we can expect fix for this? It is breaking our JavaOne demo...
Comment 2 Martin Adamek 2005-06-23 12:10:37 UTC
*** Issue 60283 has been marked as a duplicate of this issue. ***
Comment 3 Martin Roskanin 2005-07-11 11:55:07 UTC
*** Issue 60773 has been marked as a duplicate of this issue. ***
Comment 4 Martin Roskanin 2005-07-11 11:59:46 UTC
*** Issue 60749 has been marked as a duplicate of this issue. ***
Comment 5 Martin Roskanin 2005-07-11 12:08:08 UTC
ann.getAttributeValues() should not return null in accordance with javadoc.
Reassigning to java module
Comment 6 Martin Roskanin 2005-07-20 15:53:25 UTC
*** Issue 61182 has been marked as a duplicate of this issue. ***
Comment 7 Martin Matula 2005-07-20 15:59:55 UTC
Since this is a q-build stopper, as a quickfix we should first make sure we
never return null (the method should return empty list instead). The complete
fix for reading attribute values from class files correctly is less urgent.
Comment 8 zikmund 2005-07-20 16:31:08 UTC
Adding dependency on Umbrella Q-build stopper issue.
Comment 9 Tomas Hurka 2005-07-20 16:47:46 UTC
Fixed in trunk.
Checking in org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java,v  
<--  AnnotationImpl.java
new revision: 1.18; previous revision: 1.17
done
Comment 10 Jiri Kovalsky 2005-07-22 09:02:38 UTC
Verified in development build #200507211800.
Comment 11 Tomas Hurka 2005-07-22 10:39:12 UTC
merged to QBE200507191800 branch
 
Checking in AnnotationImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationImpl.java,v  
<--  AnnotationImpl.java
new revision: 1.17.2.1; previous revision: 1.17
done
Comment 12 Quality Engineering 2007-09-20 12:48:22 UTC
Reorganization of java component