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 176887 - [68cat] NullPointerException: The result parameter cannot be null
Summary: [68cat] NullPointerException: The result parameter cannot be null
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Daniel Prusa
URL:
Keywords: REGRESSION
: 176908 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-16 06:00 UTC by misterm
Modified: 2009-11-25 04:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 162143


Attachments
stacktrace (1.77 KB, text/plain)
2009-11-16 06:00 UTC, misterm
Details
stacktrace (1.77 KB, text/plain)
2009-11-16 13:44 UTC, matthies
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2009-11-16 06:00:23 UTC
Build: NetBeans IDE Dev (Build 091110-2ed0c0f492b5)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Windows XP, 5.1, x86

Stacktrace: 
java.lang.NullPointerException: The result parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.netbeans.api.java.source.CompilationController.get(CompilationController.java:81)
        at org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$4.run(EditorContextImpl.java:709)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129)
        at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113)
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
Comment 1 misterm 2009-11-16 06:00:27 UTC
Created attachment 91081 [details]
stacktrace
Comment 2 Martin Entlicher 2009-11-16 06:27:49 UTC
This should be fixed together with bug #176875 IMHO, it's related.
Comment 3 Martin Entlicher 2009-11-16 07:25:38 UTC
See also NPE at
org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:835) reported by bug 176908.
Comment 4 Martin Entlicher 2009-11-16 07:26:02 UTC
*** Bug 176908 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Prusa 2009-11-16 08:33:25 UTC
Fixed in changeset 153771:236e034e97bd
http://hg.netbeans.org/main/rev/236e034e97bd
Comment 6 matthies 2009-11-16 13:44:35 UTC
Created attachment 91128 [details]
stacktrace
Comment 7 Quality Engineering 2009-11-17 03:05:02 UTC
Integrated into 'main-golden', will be available in build *200911170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/236e034e97bd
User: Daniel Prusa <dprusa@netbeans.org>
Log: #176875, #176887: Check if the passed file object is Java source.
Comment 8 Martin Entlicher 2009-11-17 03:39:01 UTC
Fix reviewed, also verified in trunk that no exception is thrown.
I've submitted bug #176980 for the Javadoc of ResultIterator.getParserResult() to mention that "null" can be returned.
Comment 9 Vojtech Sigler 2009-11-25 04:31:56 UTC
I'm no longer able to reproduce this problem in trunk build 200911241400 nor in RC1 (build 200911241027) => Verified