Community
Participate
Working Groups
invoke Access.getJavaProjectsState().get().getContainedURIs(container); and get an NPE at org.eclipse.xtext.ui.shared.Access$InternalProviderForContribution.get(Access.java:65) because via org.eclipse.xtext.ui.shared.Access.contributedProvider(Class<? extends T>) an instance of org.eclipse.xtext.ui.shared.Access.InternalProviderForContribution<T> is created makes use of @Inject. However, Guice never initializes the object.
Discussion reveals that org.eclipse.xtext.ui.shared.Access.getJavaProjectsState() and friends are intended to be *only* used in Guice-Modules and *must not* be used as a facade to access services. This ticket is a reminder to update the documentation.
(In reply to Moritz Eysholdt from comment #1) > This ticket is a reminder to update the documentation. ...as in: Add JavaDoc to the methods.