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 268646

Summary: NullPointerException at org.netbeans.api.java.source.TypeUtilities.getDenotableType
Product: java Reporter: zmirc
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226909
Attachments: stacktrace

Description zmirc 2016-10-23 14:47:50 UTC
Build: NetBeans IDE Dev (Build 201610010002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
OS: Windows 8

User Comments:
zmirc: Copy paste a line of code from one Java file to another




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.TypeUtilities.getDenotableType(TypeUtilities.java:198)
   at org.netbeans.modules.java.hints.errors.Utilities.resolveTypeForDeclaration(Utilities.java:547)
   at org.netbeans.modules.java.hints.AssignResultToVariable.run(AssignResultToVariable.java:184)
   at org.netbeans.modules.java.hints.legacy.spi.RulesManager$WorkerImpl.createErrors(RulesManager.java:418)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:821)
   at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:113)
Comment 1 zmirc 2016-10-23 14:47:53 UTC
Created attachment 162601 [details]
stacktrace
Comment 2 Svata Dedic 2016-11-11 12:27:17 UTC
Should be fixed by jet-main#b1010b35b3bd
Comment 3 Quality Engineering 2016-11-13 02:52:34 UTC
Integrated into 'main-silver', will be available in build *201611130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b1010b35b3bd
User: Svata Dedic <sdedic@netbeans.org>
Log: #268646: return erroneous type for unknowns