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 151849 - [65cat] NullPointerException at java.util.regex.Matcher.getTextLength
Summary: [65cat] NullPointerException at java.util.regex.Matcher.getTextLength
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: diff-issues@utilities
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 12:37 UTC by sunbiz
Modified: 2009-03-27 10:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 134238


Attachments
stacktrace (3.31 KB, text/plain)
2008-10-30 12:37 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-10-30 12:37:30 UTC
Build: NetBeans IDE Dev (Build 200810290201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments:
sunbiz: Pressed diff on a Implementation Test for a BPEL project and got this exception



Stacktrace: 
java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
        at java.util.regex.Matcher.reset(Matcher.java:291)
        at java.util.regex.Matcher.<init>(Matcher.java:211)
        at java.util.regex.Pattern.matcher(Pattern.java:888)
        at org.netbeans.modules.compapp.test.ui.DiffStreamSource.getXMLEncoding(DiffStreamSource.java:162)
        at org.netbeans.modules.compapp.test.ui.DiffStreamSource.createReader(DiffStreamSource.java:134)
Comment 1 sunbiz 2008-10-30 12:37:37 UTC
Created attachment 72898 [details]
stacktrace
Comment 2 Peter Pis 2008-10-30 14:51:49 UTC
Reassigning to diff.
Comment 3 Ondrej Vrabec 2009-03-27 10:19:37 UTC
Reassigning to compapp for evaluation.
Please look at this issue - to acquire a content reader the diff module calls method
org.netbeans.modules.compapp.test.ui.DiffStreamSource.createReader, which I guess internally calls 
java.util.regex.Pattern.matcher() with a null parameter.