Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException #206

Closed
stof opened this issue Jan 5, 2014 · 1 comment
Closed

NullPointerException #206

stof opened this issue Jan 5, 2014 · 1 comment
Labels

Comments

@stof
Copy link
Contributor

stof commented Jan 5, 2014

I enabled the plugin in my PhpStorm project working on https://github.com/Behat/Symfony2Extension, which gives me autocompletion on places using the DI component (building of service definitions). However, I got a NullPointerException. I think it might be related to the fact that there is no dumped compiled container in the project. Here is the stack trace:

null keys not supported: null keys not supported
java.lang.NullPointerException: null keys not supported
    at gnu.trove.THashMap.put(THashMap.java:162)
    at com.intellij.util.indexing.ValueContainerImpl.a(ValueContainerImpl.java:66)
    at com.intellij.util.indexing.ValueContainerImpl.addValue(ValueContainerImpl.java:55)
    at com.intellij.util.indexing.ValueContainerMap$ValueContainerExternalizer.read(ValueContainerMap.java:121)
    at com.intellij.util.indexing.ValueContainerMap$ValueContainerExternalizer.read(ValueContainerMap.java:66)
    at com.intellij.util.io.PersistentHashMap.doGet(PersistentHashMap.java:427)
    at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:398)
    at com.intellij.util.indexing.MapIndexStorage$2$1.compute(MapIndexStorage.java:116)
    at com.intellij.util.indexing.MapIndexStorage$2$1.compute(MapIndexStorage.java:104)
    at com.intellij.util.indexing.ChangeTrackingValueContainer.a(ChangeTrackingValueContainer.java:117)
    at com.intellij.util.indexing.ChangeTrackingValueContainer.getValueIterator(ChangeTrackingValueContainer.java:77)
    at com.intellij.util.indexing.FileBasedIndexImpl$15.convert(FileBasedIndexImpl.java:980)
    at com.intellij.util.indexing.FileBasedIndexImpl$15.convert(FileBasedIndexImpl.java:955)
    at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:930)
    at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1001)
    at com.intellij.util.indexing.FileBasedIndexImpl.getValues(FileBasedIndexImpl.java:871)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.getParameters(ContainerCollectionResolver.java:320)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.resolve(ContainerCollectionResolver.java:284)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ParameterCollector.access$100(ContainerCollectionResolver.java:249)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.convertIndexToService(ContainerCollectionResolver.java:179)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.getServices(ContainerCollectionResolver.java:153)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ContainerCollectionResolver$ServiceCollector.convertClassNameToServices(ContainerCollectionResolver.java:204)
    at fr.adrienbrault.idea.symfony2plugin.stubs.ServiceIndexUtil.findServiceDefinitions(ServiceIndexUtil.java:72)
    at fr.adrienbrault.idea.symfony2plugin.config.PhpClassServiceGotoDeclarationHandler.getGotoDeclarationTargets(PhpClassServiceGotoDeclarationHandler.java:23)
    at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:206)
    at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findAllTargetElements(GotoDeclarationAction.java:191)
    at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.invoke(GotoDeclarationAction.java:80)
    at com.intellij.codeInsight.actions.CodeInsightAction$1$1.run(CodeInsightAction.java:63)
    at com.intellij.codeInsight.actions.CodeInsightAction$1.run(CodeInsightAction.java:70)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
    at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformedImpl(CodeInsightAction.java:55)
    at com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAction.java:41)
    at com.intellij.openapi.keymap.impl.IdeMouseEventDispatcher.dispatchMouseEvent(IdeMouseEventDispatcher.java:220)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:519)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Haehnchen added a commit that referenced this issue Jan 5, 2014
@Haehnchen
Copy link
Owner

shame on me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants