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 101725 - NPE from CasualDiff.isCommaSeparated when extracting superclass
Summary: NPE from CasualDiff.isCommaSeparated when extracting superclass
Status: VERIFIED DUPLICATE of bug 101395
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-19 10:39 UTC by Jiri Prox
Modified: 2007-06-06 13:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (2.05 KB, text/plain)
2007-04-19 10:40 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-04-19 10:39:39 UTC
NetBeans IDE Dev (Build 20070419-0559)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

NPE when calling extract super class. New super class contains only default
constructor and not selected elements.

Steps to reproduce:
1) have a class:
public class MyClassRen {
       
    public void xxxx() {
        
    }
    
    public String name;
            
}

2) call extract supers class
3) check both checkboxes to extract both elements and confirm
-> java.lang.NullPointerException
        at
org.netbeans.modules.java.source.save.CasualDiff.isCommaSeparated(CasualDiff.java:2608)
        at
org.netbeans.modules.java.source.save.CasualDiff.filterHidden(CasualDiff.java:1837)
        at
org.netbeans.modules.java.source.save.CasualDiff.diffClassDef(CasualDiff.java:330)
Comment 1 Jiri Prox 2007-04-19 10:40:43 UTC
Created attachment 41233 [details]
full stacktrace
Comment 2 Pavel Flaska 2007-04-19 11:05:47 UTC

*** This issue has been marked as a duplicate of 101395 ***
Comment 3 Jiri Prox 2007-06-06 13:50:05 UTC
v.