Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] NPE while adding package to commit

This looks like
https://bugs.eclipse.org/bugs/show_bug.cgi?id=358302
which was fixed, please retry with current nightly.

--
Matthias

2011/12/15 Erwin Mueller <erwin.mueller@xxxxxxxxxxx>
Ah sorry, I forget that.
Also if I try and commit on a Java package, I get the same NPE (i.e. right
click on Java package, Team->Commit).

EGit 1.1.0.201109151100-r

PS: I send to your email-address instead of the list, because the list was in
the CC field.

Kind regards,
Erwin.

On Thursday, December 15, 2011 11:56:19 AM Tomasz Zarna wrote:
> Hi Erwin,
>
> What EGit version are you on? If upgrading doesn't help, any NPE is
> perfect candidate for a bug:
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EGit&rep_platform=All&op
> _sys=All
>
> Cheers,
> Tomasz
>
> On Thu, Dec 15, 2011 at 11:46, Erwin Mueller <erwin.mueller@xxxxxxxxxxx>
wrote:
> > Hello,
> > I get a NullPointerException if I try and add a package for commit. I.e.
> > right click on a Java package, Team->Add. I get the Eclipse error
> > dialog, but the files are added and everything works fine. Only the
> > error dialog is annoying.
> >
> > Please ask if you need more information, it would be nice to fix the
> > bug.
> >
> > Here is the error log:
> >
> > Error occurred while building scope for committing changes
> >
> > java.lang.NullPointerException
> >        at
> > org.eclipse.egit.core.synchronize.GitResourceVariantTreeSubscriber.refre
> > sh(GitResourceVariantTreeSubscriber.java:141) at
> > org.eclipse.team.core.subscribers.SubscriberResourceMappingContext.refre
> > sh(SubscriberResourceMappingContext.java:167) at
> > org.eclipse.team.core.subscribers.SubscriberResourceMappingContext.ensur
> > eRefreshed(SubscriberResourceMappingContext.java:207) at
> > org.eclipse.team.core.subscribers.SubscriberResourceMappingContext.fetch
> > Members(SubscriberResourceMappingContext.java:132) at
> > org.eclipse.jdt.internal.corext.util.JavaElementResourceMapping.getRemot
> > ePackageFragmentTraversals(JavaElementResourceMapping.java:233) at
> > org.eclipse.jdt.internal.corext.util.JavaElementResourceMapping.access$0
> > (JavaElementResourceMapping.java:225) at
> > org.eclipse.jdt.internal.corext.util.JavaElementResourceMapping$PackageF
> > ragmentResourceMapping.getTraversals(JavaElementResourceMapping.java:198
> > ) at
> > org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.addMa
> > ppingsToScope(SynchronizationScopeManager.java:389) at
> > org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.inter
> > nalPrepareContext(SynchronizationScopeManager.java:200) at
> > org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.acces
> > s$0(SynchronizationScopeManager.java:187) at
> > org.eclipse.team.core.mapping.provider.SynchronizationScopeManager$1.run
> > (SynchronizationScopeManager.java:167) at
> > org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> >        at
> > org.eclipse.team.core.mapping.provider.SynchronizationScopeManager.initi
> > alize(SynchronizationScopeManager.java:165) at
> > org.eclipse.team.core.subscribers.SubscriberScopeManager.access$0(Subscr
> > iberScopeManager.java:1) at
> > org.eclipse.team.core.subscribers.SubscriberScopeManager$1.run(Subscribe
> > rScopeManager.java:81) at
> > org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
> >        at
> > org.eclipse.team.core.subscribers.SubscriberScopeManager.initialize(Subs
> > criberScopeManager.java:79) at
> > org.eclipse.team.ui.synchronize.ModelOperation.initializeScope(ModelOper
> > ation.java:161) at
> > org.eclipse.team.ui.synchronize.ModelOperation.beginOperation(ModelOpera
> > tion.java:124) at
> > org.eclipse.team.ui.synchronize.ModelOperation.run(ModelOperation.java:1
> > 05) at
> > org.eclipse.egit.ui.internal.operations.GitScopeUtil.collectRelatedChang
> > es(GitScopeUtil.java:168) at
> > org.eclipse.egit.ui.internal.operations.GitScopeUtil.access$0(GitScopeUt
> > il.java:158) at
> > org.eclipse.egit.ui.internal.operations.GitScopeUtil$1.run(GitScopeUtil.
> > java:141) at
> > org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalCon
> > text.java:121)
> >
> > eclipse.buildId=R3_7_1
> > java.version=1.7.0_b147-icedtea
> > java.vendor=Oracle Corporation
> > BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> > Command-line arguments:  -os linux -ws gtk -arch x86 -data
> > /home/devent/projects/com.anrisoftware
> >
> > --
> > Erwin Mueller
> > http://www.anr-institute.com/emblog - My site
> > http://www.anr-institute.com/ - Advanced Natural Research Institute GmbH
> > _______________________________________________
> > egit-dev mailing list
> > egit-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/egit-dev
--
Erwin Mueller
http://www.anr-institute.com/emblog - My site
http://www.anr-institute.com/ - Advanced Natural Research Institute GmbH
_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/egit-dev



--
Matthias

Back to the top