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 229158 - NullPointerException at org.netbeans.modules.maven.hints.errors.SearchClassDependencyHint.isSearchDialog
Summary: NullPointerException at org.netbeans.modules.maven.hints.errors.SearchClassDe...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 229391 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-29 12:19 UTC by jbsabmello
Modified: 2013-05-06 08:30 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200281


Attachments
stacktrace (1.31 KB, text/plain)
2013-04-29 12:19 UTC, jbsabmello
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 07:10 UTC, ehsavoie
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 10:04 UTC, rdion
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 15:13 UTC, mslama
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 15:49 UTC, Jesse Glick
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 19:19 UTC, misterm
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 20:04 UTC, misterm
Details
stacktrace (1.31 KB, text/plain)
2013-04-30 20:07 UTC, misterm
Details
stacktrace (1.31 KB, text/plain)
2013-05-01 10:07 UTC, Maksim Khramov
Details
stacktrace (1.31 KB, text/plain)
2013-05-01 22:55 UTC, Jesse Glick
Details
stacktrace (1.31 KB, text/plain)
2013-05-02 08:07 UTC, mslama
Details
stacktrace (1.31 KB, text/plain)
2013-05-02 11:13 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jbsabmello 2013-04-29 12:19:41 UTC
Build: NetBeans IDE Dev (Build 201304282301)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_15-b03
OS: Windows XP

User Comments:
GUEST: Attemping to add an import using hints

jbsabmello: x

GUEST: Just trying to edit some Source, playing around with Lambdas. This occured on *every* incomplete Edit, weteher it wsa lambda expression, or otherwise.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.hints.errors.SearchClassDependencyHint.isSearchDialog(SearchClassDependencyHint.java:114)
   at org.netbeans.modules.maven.hints.errors.SearchClassDependencyInRepo.run(SearchClassDependencyInRepo.java:312)
   at org.netbeans.modules.java.hints.infrastructure.CreatorBasedLazyFixList.compute(CreatorBasedLazyFixList.java:147)
   at org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:112)
   at org.netbeans.modules.java.hints.infrastructure.LazyHintComputation.run(LazyHintComputation.java:58)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
Comment 1 jbsabmello 2013-04-29 12:19:43 UTC
Created attachment 133930 [details]
stacktrace
Comment 2 Milos Kleint 2013-04-29 12:24:53 UTC
apparently hint.getPreferences(null) is null.. code outside of maven support, reassigning
Comment 3 Exceptions Reporter 2013-04-30 06:07:29 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200281
Comment 4 Exceptions Reporter 2013-04-30 06:10:27 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200281
Comment 5 ehsavoie 2013-04-30 07:10:29 UTC
Created attachment 133961 [details]
stacktrace

Changing imports
Comment 6 rdion 2013-04-30 10:04:33 UTC
Created attachment 133963 [details]
stacktrace

Just editing... (Maven 3; Java-lib)
Comment 7 mslama 2013-04-30 15:13:33 UTC
Created attachment 133988 [details]
stacktrace

edit java code
Comment 8 Exceptions Reporter 2013-04-30 15:13:39 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200281
Comment 9 Jesse Glick 2013-04-30 15:49:33 UTC
Created attachment 133990 [details]
stacktrace

Find Usages
Comment 10 misterm 2013-04-30 19:19:33 UTC
Created attachment 133995 [details]
stacktrace

Typing in the editor
Comment 11 misterm 2013-04-30 20:04:37 UTC
Created attachment 133996 [details]
stacktrace

Fixing imports
Comment 12 misterm 2013-04-30 20:07:37 UTC
Created attachment 133997 [details]
stacktrace

typing
Comment 13 Maksim Khramov 2013-05-01 10:07:38 UTC
Created attachment 134007 [details]
stacktrace

Opened java file
Comment 14 Jesse Glick 2013-05-01 22:55:38 UTC
Created attachment 134017 [details]
stacktrace

Just editing.
Comment 15 Exceptions Reporter 2013-05-01 22:55:43 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200281
Comment 16 mslama 2013-05-02 08:07:39 UTC
Created attachment 134024 [details]
stacktrace

Edit java source
Comment 17 Jesse Glick 2013-05-02 11:13:38 UTC
Created attachment 134032 [details]
stacktrace

Attached sources for Parameters.java.
Comment 18 Quality Engineering 2013-05-02 14:11:24 UTC
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5696ae677819
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #229158: AbstractHint.getPreferences should fallback to global settings when nothing better is available.
Comment 19 Jan Lahoda 2013-05-02 15:38:42 UTC
An additional fix:
http://hg.netbeans.org/main-silver/rev/5d2ea0716368
Comment 20 Jan Lahoda 2013-05-06 08:30:51 UTC
*** Bug 229391 has been marked as a duplicate of this bug. ***