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 161305 - NullPointerException at org.netbeans.modules.uml.drawingarea.ZoomManager.getSceneContentRect
Summary: NullPointerException at org.netbeans.modules.uml.drawingarea.ZoomManager.getS...
Status: STARTED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: sunbiz
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 19:51 UTC by tobbworld
Modified: 2010-08-18 14:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148352


Attachments
stacktrace (2.33 KB, text/plain)
2009-03-26 19:51 UTC, tobbworld
Details
stacktrace (2.27 KB, text/plain)
2010-08-17 15:44 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tobbworld 2009-03-26 19:51:02 UTC
Build: NetBeans IDE Dev (Build 200903250219)
VM: Java HotSpot(TM) Client VM, 1.5.0_16-133, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_16-b06-284
OS: Mac OS X, 10.5.6, i386

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.uml.drawingarea.ZoomManager.getSceneContentRect(ZoomManager.java:407)
        at org.netbeans.modules.uml.drawingarea.ZoomManager.access$100(ZoomManager.java:80)
        at org.netbeans.modules.uml.drawingarea.ZoomManager$FitWidthAction.actionPerformed(ZoomManager.java:732)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
Comment 1 tobbworld 2009-03-26 19:51:08 UTC
Created attachment 78936 [details]
stacktrace
Comment 2 sunbiz 2010-08-17 15:44:36 UTC
Created attachment 101458 [details]
stacktrace

Blank Use-Case diagram... Pressed the Fit Width button and got this exception
Comment 3 Exceptions Reporter 2010-08-17 15:44:48 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=148352
Comment 4 sunbiz 2010-08-17 16:36:47 UTC
The clientArea seems to be null when no image is loaded... simple fix to initialize Rectangle if null
Comment 5 sunbiz 2010-08-17 16:51:27 UTC
Changeset: edc68c14243c
Author:    Administrator@SUNBIZ-DELL
Date:      2010-08-17 22:18
Message:   Fixed NPE in Issue #161305
Issue #161305 - NullPointerException at org.netbeans.modules.uml.drawingarea.ZoomManager.getSceneContentRect
Comment 6 Jiri Kovalsky 2010-08-18 08:09:06 UTC
Saptarshi, you unfortunately didn't push this changeset to community-uml Hg repository. Are you sure you have your Hg setup correctly on your system? See "Configuring Mercurial" section [1] in the HgHowTos Wiki manual.

[1] http://wiki.netbeans.org/HgHowTos#Configuring_Mercurial
Comment 7 javydreamercsw 2010-08-18 13:24:23 UTC
The default for updating the issue is on commit. I also was able to update the issue when I commited but I haven't pushed to the repo yet. What I do see weird is what it shows for author on his commit.
Comment 8 sunbiz 2010-08-18 14:16:34 UTC
Changeset: 98e2e3a4f449
Author:    sunbiz@netbeans.org
Date:      2010-08-18 19:45
Message:   Fixed NPE in zoom code. Initialized clientArea before accessing co-ordinates
Issue #161305 - NullPointerException at org.netbeans.modules.uml.drawingarea.ZoomManager.getSceneContentRect
Comment 9 sunbiz 2010-08-18 14:19:05 UTC
Sorry for the earlier commit problem... There were 2 issues. One with the username in Netbeans and the other one where I had http instead of http... and I figured that I needed to have the it over https