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 254285

Summary: NullPointerException at org.netbeans.modules.findbugs.RunFindBugs.runInJavac
Product: java Reporter: schmke <schmke>
Component: FindBugsAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 213482
Attachments: stacktrace

Description schmke 2015-08-11 18:57:36 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Mac OS X

User Comments:
GUEST: Sourc->Inspect Findbugs on a maven project source package.

schmke: Trying to do Source Inspect with FindBugs, gets this error.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.findbugs.RunFindBugs.runInJavac(RunFindBugs.java:528)
   at org.netbeans.modules.findbugs.RunFindBugs.spanForEnclosingMethod(RunFindBugs.java:514)
   at org.netbeans.modules.findbugs.RunFindBugs.runFindBugs(RunFindBugs.java:337)
   at org.netbeans.modules.findbugs.AnalyzerImpl$2.run(AnalyzerImpl.java:280)
   at org.netbeans.modules.findbugs.AnalyzerImpl$2.run(AnalyzerImpl.java:278)
   at org.netbeans.modules.java.source.parsing.MimeTask.run(MimeTask.java:83)
Comment 1 schmke 2015-08-11 18:57:38 UTC
Created attachment 155273 [details]
stacktrace
Comment 2 Petr Hejl 2015-09-15 10:29:06 UTC
I'm not sure how this could happen. I've prevented it and added WARNING log for the case.
Comment 3 Quality Engineering 2015-09-16 01:25:48 UTC
Integrated into 'main-silver', will be available in build *201509160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9add19d4c28a
User: Petr Hejl <phejl@netbeans.org>
Log: #254285 - NullPointerException at org.netbeans.modules.findbugs.RunFindBugs.runInJavac