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.
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)
Created attachment 78936 [details] stacktrace
Created attachment 101458 [details] stacktrace Blank Use-Case diagram... Pressed the Fit Width button and got this exception
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=148352
The clientArea seems to be null when no image is loaded... simple fix to initialize Rectangle if null
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
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
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.
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
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