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 156678 - NullPointerException at org.netbeans.modules.uml.diagrams.edges.sqd.MessageLabelManager.getDefaultAlignment
Summary: NullPointerException at org.netbeans.modules.uml.diagrams.edges.sqd.MessageLa...
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Petrov
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-13 13:11 UTC by mircea273
Modified: 2009-02-19 23:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 144825


Attachments
stacktrace (10.13 KB, text/plain)
2009-01-13 13:11 UTC, mircea273
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mircea273 2009-01-13 13:11:13 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.24-23-generic, amd64

User Comments:
mircea273: Trying to open an UML diagram that I created yesterday with the same IDE.

mircea273: Trying to open an UML diagram that I created yesterday with the same IDE.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.uml.diagrams.edges.sqd.MessageLabelManager.getDefaultAlignment(MessageLabelManager.java:251)
        at org.netbeans.modules.uml.drawingarea.AbstractLabelManager.showLabel(AbstractLabelManager.java:200)
        at org.netbeans.modules.uml.diagrams.edges.sqd.MessageLabelManager.showLabel(MessageLabelManager.java:283)
        at org.netbeans.modules.uml.drawingarea.AbstractLabelManager.showLabel(AbstractLabelManager.java:228)
        at org.netbeans.modules.uml.diagrams.edges.sqd.MessageWidget.load(MessageWidget.java:297)
        at org.netbeans.modules.uml.diagrams.edges.sqd.ResultMessageConnectionWidget.load(ResultMessageConnectionWidget.java:103)
Comment 1 mircea273 2009-01-13 13:11:30 UTC
Created attachment 75751 [details]
stacktrace
Comment 2 Sergey Petrov 2009-01-13 13:43:40 UTC
can you attach your project or may be any project with smilar diagram with the same problem?
Comment 3 Sergey Petrov 2009-01-13 14:03:31 UTC
I'll add null check in this place, but need to know root cause.
Comment 4 Sergey Petrov 2009-01-13 14:16:35 UTC
null check is integrated into team repository, approx in two days it will be in daily build. feel free to try if this
will allow to open your diagram.
Comment 5 Sergey Petrov 2009-01-13 14:21:51 UTC
or wait for m2 build a bit if don't want to use daily.
Comment 6 Quality Engineering 2009-01-16 07:26:58 UTC
Integrated into 'main-golden', will be available in build *200901160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/30a297582c06
User: sergeyp@netbeans.org
Log: fix #156678 - added null check to label manager, still need to know why label is invoked on absent message
Comment 7 Sergey Petrov 2009-01-29 18:39:39 UTC
fixed. if any problem will exist it will not be the same exception.