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.
Summary: | JComponent created by DiffController throws NPE when component is painted | ||
---|---|---|---|
Product: | utilities | Reporter: | mgoe <mgoe> |
Component: | Diff | Assignee: | diff-issues@utilities <diff-issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Module suite project showing the issue |
Description
mgoe
2009-08-18 09:32:18 UTC
Created attachment 86376 [details]
Module suite project showing the issue
In order to reproduce the bug please compile and run the attached module suite project. You also need to add at least a dependency on Plain Editor. Diff uses some functionality from that module (not directly but through lookup). Add dependency on ide11/Plain Editor, that should help and eliminate the NPE. This is a WA, i'm lowering the priority to P3, but leaving this open. We will try to find a way to eliminate the dependency. *** Issue 170047 has been marked as a duplicate of this issue. *** fix: cdev #3f465a28133c The NPE was thrown because a default editor returned an unsupported TextUI (BaseTextUI is needed). When diff doesn't get an instance of BaseTextUI, it displays a warning message in both panes. In order to make diff working properly it suffices to enable the Plain Editor module (can be found in ide11 cluster - or ide12 for 6.8) If the Plain Editor module is required for the diff module to work properly, the diff module should have a dependency on the Plain Editor module. Otherwise you will get runtime errors which is not acceptable. Integrated into 'main-golden', will be available in build *200909151512* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3f465a28133c User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #170527 - JComponent created by DiffController throws NPE when component is painted Showing a warning message instead the NPE |