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 83508 - NullPointerException when deleting extraneously created element
Summary: NullPointerException when deleting extraneously created element
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-25 20:45 UTC by htt
Modified: 2006-08-29 18:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description htt 2006-08-25 20:45:26 UTC
With trunk build 060824, jdk1.5.0_07...

open a new schema -> Design Pattern=VB
In Design view,
  d/d complex type ct1
  d/d element e1 to ct1
  d/d element e2 to e1 -> e1Type is generated
  change sequence of e1Type to all -> notice that e1 is now collapsed.  Expand
it: there're now 2 copies of e2.  (NOTE: Source view correctly shows only one e2
however.)
  delete one of the e2 -> e2 is deleted from Source & Design views
  delete the remaining e2 -> NPE

java.lang.NullPointerException
        at
org.netbeans.modules.xml.schema.abe.nodes.ABEAbstractNode.remove(ABEAbstractNode.java:229)
        at
org.netbeans.modules.xml.schema.abe.action.ABEDeleteAction.performAction(ABEDeleteAction.java:41)
        at
org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:537)
        at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:87)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:80)
        at
org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:30)
        at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:78)
        at
org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:47)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 htt 2006-08-25 23:06:58 UTC
Addendum (to original Description): 
     d/d = drag and drop
     VB  = Venetian Blind
Comment 2 Samaresh Panda 2006-08-26 01:45:42 UTC
Fix integrated.
Checking in ABEAbstractNode.java; new revision: 1.1.2.31;
Comment 3 htt 2006-08-29 18:10:46 UTC
Verified in build 060829_8