In rare cases we get this NPE when accessing a WebEngine module for the first time (for example EasyShare):
Caused by: java.lang.NullPointerException at com.sun.jersey.server.spi.component.ResourceComponentInjector.processFields(ResourceComponentInjector.java:115) at com.sun.jersey.server.spi.component.ResourceComponentInjector.<init>(ResourceComponentInjector.java:93) at com.sun.jersey.server.spi.component.ResourceComponentConstructor.<init>(ResourceComponentConstructor.java:156) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.installTypeContribution(TypeRegistry.java:280) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.installContribution(TypeRegistry.java:275) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.installContribution(TypeRegistry.java:49) at org.nuxeo.runtime.contribution.impl.AbstractContributionRegistry.fireResolved(AbstractContributionRegistry.java:164) at org.nuxeo.runtime.contribution.impl.ContributionImpl.resolve(ContributionImpl.java:248) at org.nuxeo.runtime.contribution.impl.ContributionImpl.update(ContributionImpl.java:212) at org.nuxeo.runtime.contribution.impl.ContributionImpl.addFragment(ContributionImpl.java:165) at org.nuxeo.runtime.contribution.impl.AbstractContributionRegistry.addFragment(AbstractContributionRegistry.java:134) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.registerType(TypeRegistry.java:191) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.registerRootType(TypeRegistry.java:82) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.<init>(TypeRegistry.java:69) at org.nuxeo.ecm.webengine.model.impl.TypeRegistry.<init>(TypeRegistry.java:76) at org.nuxeo.ecm.webengine.model.impl.ModuleImpl.createTypeRegistry(ModuleImpl.java:444) at org.nuxeo.ecm.webengine.model.impl.ModuleImpl.getTypeRegistry(ModuleImpl.java:188) at org.nuxeo.ecm.webengine.model.impl.ModuleImpl.getType(ModuleImpl.java:207) at org.nuxeo.ecm.webengine.model.impl.ModuleRoot.setContext(ModuleRoot.java:74)