CodeDependency fails in Selena

Hi

I've just downloaded the plugin via Plugin Manager and tried to use it, but could not see the dependency graph. Instead, the following exception was logged:

Argument 1 for @NotNull parameter of com/intellij/openapi/graph/builder/util/GraphViewUtil.addDataProvider must not be null
java.lang.IllegalArgumentException: Argument 1 for @NotNull parameter of com/intellij/openapi/graph/builder/util/GraphViewUtil.addDataProvider must not be null
at com.intellij.openapi.graph.builder.util.GraphViewUtil.addDataProvider(GraphViewUtil.java)
at com.intellij.openapi.graph.builder.util.GraphViewUtil.createView(GraphViewUtil.java:47)
at com.sixrr.codedependency.classelementsgraph.h.a(h.java:0)
at com.sixrr.codedependency.classelementsgraph.h.createCustomComponent(h.java:4)
at com.intellij.util.xml.ui.PerspectiveFileEditor.ensureInitialized(PerspectiveFileEditor.java:199)
at com.intellij.util.xml.ui.PerspectiveFileEditor.selectNotify(PerspectiveFileEditor.java:192)
at com.intellij.util.xml.ui.PerspectiveFileEditor$2$1.run(PerspectiveFileEditor.java:63)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.IllegalArgumentException: Argument 1 for @NotNull parameter of com/intellij/openapi/graph/builder/util/GraphViewUtil.addDataProvider must not be null
at com.intellij.openapi.graph.builder.util.GraphViewUtil.addDataProvider(GraphViewUtil.java)
at com.intellij.openapi.graph.builder.util.GraphViewUtil.createView(GraphViewUtil.java:47)
at com.sixrr.codedependency.classelementsgraph.h.a(h.java:0)
at com.sixrr.codedependency.classelementsgraph.h.createCustomComponent(h.java:4)
at com.intellij.util.xml.ui.PerspectiveFileEditor.ensureInitialized(PerspectiveFileEditor.java:199)
at com.intellij.util.xml.ui.PerspectiveFileEditor.selectNotify(PerspectiveFileEditor.java:192)
at com.intellij.util.xml.ui.PerspectiveFileEditor$2$1.run(PerspectiveFileEditor.java:63)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

3 comments

This has been fixed in CodeDependency 1.4.1, now available via the plugin manager.

Sixth and Red River Software
"Code with Grace and Verve"

0

Thank you for the update, but now it fails with a different stack trace.
It happens when I try to open the "external dependencies" editor tab for a library class.


No message
java.lang.NullPointerException
at com.intellij.openapi.roots.ModuleRootManager.getInstance(ModuleRootManager.java:36)
at com.sixrr.codedependency.utils.i.a(i.java:24)
at com.sixrr.codedependency.utils.a.a(a.java:47)
at com.sixrr.codedependency.utils.a.a(a.java:69)
at com.sixrr.codedependency.utils.a.visitClass(a.java:182)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:256)
at com.sixrr.codedependency.classneighborsgraph.i.b(i.java:63)
at com.sixrr.codedependency.classneighborsgraph.i.buildGraph(i.java:187)
at com.intellij.openapi.graph.builder.CachedGraphDataModel.checkUpdate(CachedGraphDataModel.java:83)
at com.intellij.openapi.graph.builder.CachedGraphDataModel.getNodes(CachedGraphDataModel.java:47)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.createDataModel(GraphBuilderImpl.java:183)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.buildModel(GraphBuilderImpl.java:247)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.initialize(GraphBuilderImpl.java:220)
at com.intellij.openapi.graph.builder.components.BasicGraphComponent.(BasicGraphComponent.java:47) at com.sixrr.codedependency.classneighborsgraph.j.(j.java:1) at com.sixrr.codedependency.classneighborsgraph.n.a(n.java:23) at com.sixrr.codedependency.classneighborsgraph.n.createCustomComponent(n.java:29) at com.intellij.util.xml.ui.PerspectiveFileEditor.ensureInitialized(PerspectiveFileEditor.java:199) at com.intellij.util.xml.ui.PerspectiveFileEditor$2.selectionChanged(PerspectiveFileEditor.java:88) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:85) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:144) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:136) at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:19) at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:84) at $Proxy54.selectionChanged(Unknown Source) at com.intellij.openapi.fileEditor.impl.EditorComposite.a(EditorComposite.java:3) at com.intellij.openapi.fileEditor.impl.EditorComposite.access$300(EditorComposite.java:50) at com.intellij.openapi.fileEditor.impl.EditorComposite$MyChangeListener.stateChanged(EditorComposite.java:5) at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:290) at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:222) at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116) at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50) at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:478) at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:464) at com.intellij.ui.TabbedPaneWrapper$TabbedPane.setSelectedIndex(TabbedPaneWrapper.java:68) at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(BasicTabbedPaneUI.java:3237) at javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(BasicTabbedPaneUI.java:3391) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222) at java.awt.Component.processMouseEvent(Component.java:5485) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:139) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) java.lang.NullPointerException at com.intellij.openapi.roots.ModuleRootManager.getInstance(ModuleRootManager.java:36) at com.sixrr.codedependency.utils.i.a(i.java:24) at com.sixrr.codedependency.utils.a.a(a.java:47) at com.sixrr.codedependency.utils.a.a(a.java:69) at com.sixrr.codedependency.utils.a.visitClass(a.java:182) at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:256) at com.sixrr.codedependency.classneighborsgraph.i.b(i.java:63) at com.sixrr.codedependency.classneighborsgraph.i.buildGraph(i.java:187) at com.intellij.openapi.graph.builder.CachedGraphDataModel.checkUpdate(CachedGraphDataModel.java:83) at com.intellij.openapi.graph.builder.CachedGraphDataModel.getNodes(CachedGraphDataModel.java:47) at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.createDataModel(GraphBuilderImpl.java:183) at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.buildModel(GraphBuilderImpl.java:247) at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.initialize(GraphBuilderImpl.java:220) at com.intellij.openapi.graph.builder.components.BasicGraphComponent.(BasicGraphComponent.java:47) at com.sixrr.codedependency.classneighborsgraph.j.]]>(j.java:1)
at com.sixrr.codedependency.classneighborsgraph.n.a(n.java:23)
at com.sixrr.codedependency.classneighborsgraph.n.createCustomComponent(n.java:29)
at com.intellij.util.xml.ui.PerspectiveFileEditor.ensureInitialized(PerspectiveFileEditor.java:199)
at com.intellij.util.xml.ui.PerspectiveFileEditor.selectNotify(PerspectiveFileEditor.java:192)
at com.intellij.util.xml.ui.PerspectiveFileEditor$2$1.run(PerspectiveFileEditor.java:63)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

0

And, while editing a file, I've got this:

No message
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.util.ArrayList.ensureCapacity(ArrayList.java:171)
at java.util.ArrayList.add(ArrayList.java:352)
at com.intellij.util.UniqueResultsQuery$2.process(UniqueResultsQuery.java:64)
at com.intellij.util.UniqueResultsQuery$1.process(UniqueResultsQuery.java:52)
at com.intellij.psi.impl.search.CachesBasedRefSearcher$3.execute(CachesBasedRefSearcher.java:12)
at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:48)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$12$1$1.run(PsiSearchHelperImpl.java:13)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:197)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$12$1.run(PsiSearchHelperImpl.java:0)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:34)
at com.intellij.psi.impl.search.PsiSearchHelperImpl$12.run(PsiSearchHelperImpl.java:0)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at com.intellij.concurrency.JobImpl.scheduleAndWaitForResults(JobImpl.java:75)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.a(PsiSearchHelperImpl.java:157)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.processElementsWithWord(PsiSearchHelperImpl.java:81)
at com.intellij.psi.impl.search.CachesBasedRefSearcher.execute(CachesBasedRefSearcher.java:13)
at com.intellij.psi.impl.search.CachesBasedRefSearcher.execute(CachesBasedRefSearcher.java:3)
at com.intellij.util.ExecutorsQuery.forEach(ExecutorsQuery.java:59)
at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:49)
at com.intellij.util.UniqueResultsQuery.findAll(UniqueResultsQuery.java:62)
at com.intellij.util.UniqueResultsQuery.iterator(UniqueResultsQuery.java:77)
at com.sixrr.codedependency.classneighborsgraph.i.a(i.java:56)
at com.sixrr.codedependency.classneighborsgraph.i.a(i.java:107)
at com.sixrr.codedependency.classneighborsgraph.i.buildGraph(i.java:92)
at com.intellij.openapi.graph.builder.CachedGraphDataModel.checkUpdate(CachedGraphDataModel.java:83)
at com.intellij.openapi.graph.builder.CachedGraphDataModel.getNodes(CachedGraphDataModel.java:47)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.createDataModel(GraphBuilderImpl.java:183)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.buildModel(GraphBuilderImpl.java:247)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.updateGraph(GraphBuilderImpl.java:97)
at com.sixrr.codedependency.classneighborsgraph.m.a(m.java:14)
at com.sixrr.codedependency.classneighborsgraph.m.contentsChanged(m.java:20)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:55)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:49)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:80)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:12)
at $Proxy10.contentsChanged(Unknown Source)
at com.intellij.openapi.vfs.VirtualFileSystem.fireContentsChanged(VirtualFileSystem.java:145)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.fireContentsChanged(LocalFileSystemImpl.java:553)
at com.intellij.openapi.vfs.impl.local.VirtualFileImpl$3.close(VirtualFileImpl.java:16)
at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:431)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
at java.io.BufferedWriter.close(BufferedWriter.java:250)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:29)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.access$300(FileDocumentManagerImpl.java:110)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl$3.run(FileDocumentManagerImpl.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:139)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveDocument(FileDocumentManagerImpl.java:83)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:38)
at com.intellij.ide.SaveAndSyncHandler$1.run(SaveAndSyncHandler.java:2)
at com.intellij.ide.IdeEventQueue$MyFireIdleRequest.run(IdeEventQueue.java:6)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.NullPointerException
at com.sixrr.codedependency.classneighborsgraph.i.a(i.java:19)
at com.sixrr.codedependency.classneighborsgraph.i.a(i.java:107)
at com.sixrr.codedependency.classneighborsgraph.i.buildGraph(i.java:92)
at com.intellij.openapi.graph.builder.CachedGraphDataModel.checkUpdate(CachedGraphDataModel.java:83)
at com.intellij.openapi.graph.builder.CachedGraphDataModel.getNodes(CachedGraphDataModel.java:47)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.createDataModel(GraphBuilderImpl.java:183)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.buildModel(GraphBuilderImpl.java:247)
at com.intellij.openapi.graph.impl.builder.GraphBuilderImpl.updateGraph(GraphBuilderImpl.java:97)
at com.sixrr.codedependency.classneighborsgraph.m.a(m.java:14)
at com.sixrr.codedependency.classneighborsgraph.m.contentsChanged(m.java:20)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:55)
at com.intellij.util.PendingEventDispatcher.a(PendingEventDispatcher.java:49)
at com.intellij.util.PendingEventDispatcher.access$100(PendingEventDispatcher.java:80)
at com.intellij.util.PendingEventDispatcher$1.invoke(PendingEventDispatcher.java:12)
at $Proxy10.contentsChanged(Unknown Source)
at com.intellij.openapi.vfs.VirtualFileSystem.fireContentsChanged(VirtualFileSystem.java:145)
at com.intellij.openapi.vfs.impl.local.LocalFileSystemImpl.fireContentsChanged(LocalFileSystemImpl.java:553)
at com.intellij.openapi.vfs.impl.local.VirtualFileImpl$3.close(VirtualFileImpl.java:16)
at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:431)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
at java.io.BufferedWriter.close(BufferedWriter.java:250)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:29)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.access$300(FileDocumentManagerImpl.java:110)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl$3.run(FileDocumentManagerImpl.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:139)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveDocument(FileDocumentManagerImpl.java:83)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:38)
at com.intellij.ide.SaveAndSyncHandler$1.run(SaveAndSyncHandler.java:2)
at com.intellij.ide.IdeEventQueue$MyFireIdleRequest.run(IdeEventQueue.java:6)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:10)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:144)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:51)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:89)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

0

Please sign in to leave a comment.