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 15738 - in some cases, NPE is shown while showing popup menu on Child POA node
Summary: in some cases, NPE is shown while showing popup menu on Child POA node
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: corba (show other bugs)
Version: -FFJ-
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-09-21 09:52 UTC by issues@www
Modified: 2005-03-09 04:28 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 issues@www 2001-09-21 09:52:42 UTC
Description: 
How to reproduce:
Set ORB to Orbix2000
Create ServerMain
Create Child POA
Customize Child POA:
  Set USE_SERVANT_MANAGER or USE_DEFAULT_SERVANT
  Fill Work Queue with something
Right click on Child POA node
ERROR - NPE dialog is shown

Mon Aug 06 16:02:21 CEST 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.netbeans.modules.corba.poasupport.tools.POAChecker.isEnabled
(POAChecker.java:400)
        at 
org.netbeans.modules.corba.poasupport.tools.POAChecker.isServantManagerEnabled
(POAChecker.java:373)
        at org.netbeans.modules.corba.poasupport.nodes.POANode.getNewTypes
(POANode.java:191)
        at org.openide.nodes.FilterNode.getNewTypes(FilterNode.java:403)
        at org.openide.actions.NewAction.getNewTypes(NewAction.java:86)
        at org.openide.actions.NewAction.getNewTypes(NewAction.java:75)
        at org.openide.actions.NewAction.enable(NewAction.java:91)
        at org.openide.util.actions.NodeAction$NodesL.checkEnabled
(NodeAction.java:248)
        at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:64)
        at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:399)
        at org.openide.awt.Actions$SubMenu.<init>(Actions.java:816)
        at org.openide.actions.NewAction.getPopupPresenter(NewAction.java:144)
        at org.openide.nodes.NodeOp.findContextMenuImpl(NodeOp.java:145)
        at org.openide.nodes.Node.getContextMenu(Node.java:414)
        at org.openide.nodes.NodeOp.findContextMenu(NodeOp.java:79)
        at org.openide.explorer.view.TreeView.createPopup(TreeView.java:743)
        at org.openide.explorer.view.TreeView$PopupAdapter.showPopup
(TreeView.java:737)
        at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased
(MouseUtils.java:149)
        at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
[catch] at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:230)
        at java.awt.Component.processMouseEvent(Component.java:3715)
        at java.awt.Component.processEvent(Component.java:3544)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:914)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

Public Summary: 
check for null policy value added.

Evaluation: 
Happens in rare cases when the set of possible POA policy's values is not 
predefined - case of two non-standard policies of Orbix2000 

A comment.
Comment 1 Dusan Balek 2001-09-24 16:50:44 UTC
Fixed in main trunk during CORBA opensourcing.
Comment 2 David Kaspar 2001-10-03 16:19:10 UTC
Verified
Comment 3 Quality Engineering 2003-06-30 17:08:28 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.