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 nbms-and-javadoc-7737-on-20110821) VM: Java HotSpot(TM) Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Windows XP User Comments: mklaehn: opening groovy file Stacktrace: java.lang.NullPointerException at sun.font.FontDesignMetrics$MetricsKey.init(FontDesignMetrics.java:199) at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:267) at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:942) at javax.swing.JComponent.getFontMetrics(JComponent.java:1599) at org.netbeans.editor.FontMetricsCache.getFontMetrics(FontMetricsCache.java:77) at org.netbeans.editor.EditorUI.computeLineNumberDigitWidth(EditorUI.java:1516)
Created attachment 110188 [details] stacktrace
I have the same problem with: Product Version: NetBeans IDE Dev (Build 201108290601) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=180744
Created attachment 110492 [details] stacktrace opened a .groovy file
Created attachment 110493 [details] stacktrace
groovy team, please have a look at this one.
Created attachment 110679 [details] stacktrace NPE when opening a self written (OpenCL) editor in latest 7.1 devbuild. This did not happen on 7.01. Stacktrace does not contain module code.
Created attachment 110892 [details] stacktrace Opening a groovy file from the project threw this exception
Milo, this is coming from your code, any ideas?
Created attachment 110957 [details] stacktrace Opening a groovy file.
It's a JDK issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6547087 We should check whether it implies that c.getFont() == null in this case.
http://hg.netbeans.org/jet-main/rev/a012e0f8c7db
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a012e0f8c7db User: Milutin Kristofic <mkristofic@netbeans.org> Log: #201294 - NullPointerException at sun.font.FontDesignMetrics$MetricsKey.init
It's already in releases71_beta: http://hg.netbeans.org/releases/rev/95082ea602f8
verified in beta