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

Summary: NullPointerException at java.awt.geom.Path2D$Float.cloneCoordsDouble
Product: editor Reporter: zeloras
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 198775
Attachments: stacktrace

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.