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 226373 - NullPointerException at java.awt.geom.Path2D$Float.cloneCoordsDouble
Summary: NullPointerException at java.awt.geom.Path2D$Float.cloneCoordsDouble
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 01:59 UTC by zeloras
Modified: 2013-08-27 10:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 198775


Attachments
stacktrace (4.40 KB, text/plain)
2013-02-20 01:59 UTC, zeloras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zeloras 2013-02-20 01:59:31 UTC
Build: NetBeans IDE Dev (Build 201302162300)
VM: OpenJDK Client VM, 20.0-b12, OpenJDK Runtime Environment, 1.6.0_27-b27
OS: Linux

Stacktrace: 
java.lang.NullPointerException
   at java.awt.geom.Path2D$Float.cloneCoordsDouble(Path2D.java:258)
   at java.awt.geom.Path2D$Double.<init>(Path2D.java:1064)
   at java.awt.geom.AffineTransform.createTransformedShape(AffineTransform.java:3809)
   at org.netbeans.modules.editor.lib2.view.TextLayoutUtils.getRealAlloc(TextLayoutUtils.java:132)
   at org.netbeans.modules.editor.lib2.view.HighlightsViewUtils.paintHiglighted(HighlightsViewUtils.java:294)
   at org.netbeans.modules.editor.lib2.view.HighlightsView.paint(HighlightsView.java:245)
Comment 1 zeloras 2013-02-20 01:59:33 UTC
Created attachment 131590 [details]
stacktrace
Comment 2 Miloslav Metelka 2013-08-27 10:10:35 UTC
Cannot reproduce the problem. I've checked the code and the only possibility is that the textLayout.getVisualHighlightShape() would return null shape and that one would be then passed to transform.createTransformedShape(shape).
Since there's just one report I close as worksforme. If the problem would reappear please reopen the issue and possibly provide steps to reproduce.