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 48764 - [40cat] NPE in JavaFormatSupport
Summary: [40cat] NPE in JavaFormatSupport
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 48864 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-09 12:40 UTC by Miloslav Metelka
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE Stack trace (2.49 KB, text/plain)
2004-09-09 12:42 UTC, Miloslav Metelka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2004-09-09 12:40:50 UTC
Steps:
1) Open any java file
2) On a line with java code type ':' at the end of
the line.
3) Press Enter.

NPE is thrown.
Comment 1 Miloslav Metelka 2004-09-09 12:42:09 UTC
Created attachment 17511 [details]
NPE Stack trace
Comment 2 Miloslav Metelka 2004-09-09 12:43:19 UTC
It's likely related to fix of issue 48329 so assigning to Dusan.
Comment 3 Dusan Balek 2004-09-09 14:03:43 UTC
Fixed in [maintrunk].

Checking in JavaFormatSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java
JavaFormatSupport.java
new revision: 1.33; previous revision: 1.32
done
Comment 4 Jiri Kovalsky 2004-09-09 16:09:27 UTC
This is a bug found in NetCAT 4.0 program.
Comment 5 Dusan Balek 2004-09-13 08:07:51 UTC
*** Issue 48864 has been marked as a duplicate of this issue. ***
Comment 6 pfelenda 2004-09-14 16:28:48 UTC
Verified in dev build 200409131800.
I tried push enter after the ':' at the end of the line.
The caret was moved to next line (under the char ":"), 4 spaces right
without exception.
Comment 7 Dusan Balek 2004-09-14 17:04:05 UTC
Integrated into [release40_beta2] branch.

Checking in JavaFormatSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java,v
 <--  JavaFormatSupport.java
new revision: 1.32.4.1; previous revision: 1.32
done