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 230651 - NullPointerException at org.netbeans.modules.java.hints.introduce.IntroduceHint.resolveType
Summary: NullPointerException at org.netbeans.modules.java.hints.introduce.IntroduceHi...
Status: RESOLVED DUPLICATE of bug 231050
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-03 09:40 UTC by Ralph Ruijs
Modified: 2013-06-11 12:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 201118


Attachments
stacktrace (2.14 KB, text/plain)
2013-06-03 09:40 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2013-06-03 09:40:41 UTC
Build: NetBeans IDE Dev (Build 20130527-0f8212f3381a)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 8

User Comments:
ralphbenjamin: Tried introduce variable for null (the occurence in new Result(....)), the code is from the clienteditor sample.

public Validator.Result validate(Integer arg) {        
    if ((arg < 1) || (arg > 199)) {
        return new Result(null, "Age range is 1-199");
    }
    
    return null;    
}




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.resolveType(IntroduceHint.java:1557)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.access$1000(IntroduceHint.java:160)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint$IntroduceFix$1.run(IntroduceHint.java:1627)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint$IntroduceFix$1.run(IntroduceHint.java:1617)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:644)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:634)
Comment 1 Ralph Ruijs 2013-06-03 09:40:43 UTC
Created attachment 135255 [details]
stacktrace
Comment 2 Jan Lahoda 2013-06-11 12:50:29 UTC
I'll fix as bug #231050.

*** This bug has been marked as a duplicate of bug 231050 ***