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 243446 - NullPointerException at org.netbeans.modules.maven.queries.RepositoryForBinaryQueryImpl$SrcResult.preferSources
Summary: NullPointerException at org.netbeans.modules.maven.queries.RepositoryForBinar...
Status: RESOLVED DUPLICATE of bug 245785
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks: 242107
  Show dependency tree
 
Reported: 2014-04-01 12:34 UTC by Ondrej Vrabec
Modified: 2014-07-18 09:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208846


Attachments
stacktrace (1.67 KB, text/plain)
2014-04-01 12:34 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2014-04-01 12:34:29 UTC
Build: NetBeans IDE Dev (Build 20140310-6b59ffdba5d7)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
ovrabec: opening a dcs project




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.queries.RepositoryForBinaryQueryImpl$SrcResult.preferSources(RepositoryForBinaryQueryImpl.java:510)
   at org.netbeans.api.java.queries.SourceForBinaryQuery$Result2.preferSources(SourceForBinaryQuery.java:228)
   at org.netbeans.modules.maven.problems.MavenModelProblemsProvider.doArtifactChecks(MavenModelProblemsProvider.java:209)
   at org.netbeans.modules.maven.problems.MavenModelProblemsProvider.getProblems(MavenModelProblemsProvider.java:154)
   at org.netbeans.spi.project.ui.support.UILookupMergerSupport$ProjectProblemsProviderImpl.getProblems(UILookupMergerSupport.java:299)
   at org.netbeans.modules.project.ui.problems.BrokenProjectAnnotator$2.run(BrokenProjectAnnotator.java:141)
Comment 1 Ondrej Vrabec 2014-04-01 12:34:30 UTC
Created attachment 146469 [details]
stacktrace
Comment 2 Milos Kleint 2014-04-01 13:34:04 UTC
toRet = prj.getLookup().lookup(ForeignClassBundler.class).preferSources();

The likely cause is the absence of ForeignClassBundler in lookup. However there's a clear registration of FCB Merger in the code so it should always be present.

in this sense very similar to issue 243427
Comment 3 Tomas Stupka 2014-07-18 09:35:45 UTC

*** This bug has been marked as a duplicate of bug 245785 ***