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

Summary: [65cat] NullPointerException at java.util.regex.Matcher.getTextLength
Product: soa Reporter: sunbiz <sunbiz>
Component: Composite ApplicationAssignee: diff-issues@utilities <diff-issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=134238
Issue Type: DEFECT Exception Reporter: 134238
Attachments: stacktrace

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.