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 254947 - NullPointerException at org.netbeans.modules.editor.bracesmatching.MasterMatcher.<init>(MasterMatcher.java:258)
Summary: NullPointerException at org.netbeans.modules.editor.bracesmatching.MasterMatc...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL: http://deadlock.netbeans.org/job/Ease...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2015-09-02 20:27 UTC by Martin Entlicher
Modified: 2015-09-04 01:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2015-09-02 20:27:16 UTC
After this change:
http://hg.netbeans.org/web-main/diff/ea9c1e6864a7/editor.bracesmatching/src/org/netbeans/modules/editor/bracesmatching/MasterMatcher.java
HtmlMatcherTest is failing.
See http://deadlock.netbeans.org/job/Easel-build/706/

The problem is, that markTestThread() method creates new MasterMatcher(null);
The component parameter is null, which is not expected. It looks like the code is not meant to be called with a null component, but the test does so.
Perhaps markTestThread() can use some dummy component?
Comment 1 Miloslav Metelka 2015-09-03 08:10:18 UTC
Apologies, fixed.
http://hg.netbeans.org/jet-main/rev/2587df19b932
Comment 2 Quality Engineering 2015-09-04 01:24:31 UTC
Integrated into 'main-silver', will be available in build *201509040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2587df19b932
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #254947 - NullPointerException at org.netbeans.modules.editor.bracesmatching.MasterMatcher.<init>(MasterMatcher.java:258).