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 128266 - NullPointerException at org.netbeans.modules.db.mysql.ConnectServerAction
Summary: NullPointerException at org.netbeans.modules.db.mysql.ConnectServerAction
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
: 128477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-24 21:07 UTC by David Vancouvering
Modified: 2008-02-28 00:19 UTC (History)
1 user (show)

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 David Vancouvering 2008-02-24 21:07:02 UTC
Ludo got this, see http://statistics.netbeans.org/analytics/detail.do?id=30207
Comment 1 David Vancouvering 2008-02-24 21:08:24 UTC
Relevant stack trace:

java.lang.NullPointerException
        at org.netbeans.modules.db.mysql.ConnectServerAction.enable(ConnectServerAction.java:83)
        at org.openide.util.actions.NodeAction$DelegateAction.resultChanged(NodeAction.java:611)
        at org.openide.util.actions.CookieAction$CookieDelegateAction.superResultChanged(CookieAction.java:330)
        at org.openide.util.actions.CookieAction$CookieDelegateAction.resultChanged(CookieAction.java:326)
Comment 2 David Vancouvering 2008-02-24 21:09:21 UTC
I'm not sure how this can happen, this cookie should never be null, but the enable method seems to be called at strange
times.  I'm adding a check for null in the enable method.
Comment 4 David Vancouvering 2008-02-28 00:19:44 UTC
*** Issue 128477 has been marked as a duplicate of this issue. ***