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 83506 - NullPointerException when changing compositor in a proxy's origin
Summary: NullPointerException when changing compositor in a proxy's origin
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:34 UTC by htt
Modified: 2006-08-29 18:06 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:34:21 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; in DV,
        ct1
        sequence
          e1
          sequence
             e2
        e1Type
        sequence
          e2
  change sequence of e1 to choice -> in DV,
        ct1
        sequence
          e1
        e1Type
        sequence
          e2
  change sequence of e1Type to all -> NPE

java.lang.NullPointerException
        at
org.netbeans.modules.xml.schema.abe.CompositorPanel.setCompositorTypeInModel(CompositorPanel.java:341)
        at
org.netbeans.modules.xml.schema.abe.CompositorPanel$5$1.actionPerformed(CompositorPanel.java:248)
        at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)
        at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)
        at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)
        at
javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:808)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at
javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:476)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 htt 2006-08-25 23:06:07 UTC
Addendum (to original Description): 
     d/d = drag and drop
     DV  = Design view
     VB  = Venetian Blind
Comment 2 Samaresh Panda 2006-08-29 00:42:59 UTC
Fix integrated
Checking in AXIModelUpdater.java;
new revision: 1.1.2.20;
Comment 3 htt 2006-08-29 18:06:55 UTC
Verified in build 060829_8.