dneves / gitlab-integration-plugin

Intellij Plugin for GitLab Integration
MIT License
37 stars 14 forks source link

NullPointerException #21

Closed ofry closed 5 years ago

ofry commented 5 years ago

IntelliJ IDEA 2018.2.6 (Ultimate Edition) Build #IU-182.5107.16, built on November 6, 2018

JRE: 1.8.0_152-release-1248-b22 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Ubuntu 18.10 x64

Trace:

failed to init toolwindow com.neon.intellij.plugins.gitlab.GitLabToolWindowFactory

java.lang.NullPointerException
    at okhttp3.HttpUrl$Builder.parse(HttpUrl.java:1306)
    at okhttp3.HttpUrl.get(HttpUrl.java:916)
    at okhttp3.HttpUrl.parse(HttpUrl.java:904)
    at com.neon.intellij.plugins.gitlab.RetrofitSupplier.get(RetrofitSupplier.java:38)
    at com.neon.intellij.plugins.gitlab.GitLabServiceSupplier.get(GitLabServiceSupplier.java:17)
    at com.neon.intellij.plugins.gitlab.controller.GLIController.refresh(GLIController.java:117)
    at com.neon.intellij.plugins.gitlab.controller.GLIController.run(GLIController.java:48)
    at com.neon.intellij.plugins.gitlab.GitLabToolWindowFactory.createToolWindowContent(GitLabToolWindowFactory.java:20)
    at com.intellij.openapi.wm.impl.ToolWindowImpl.ensureContentInitialized(ToolWindowImpl.java:512)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.lambda$initToolWindow$10(ToolWindowManagerImpl.java:523)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.initToolWindow(ToolWindowManagerImpl.java:526)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl$5.run(ToolWindowManagerImpl.java:478)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
    at com.intellij.openapi.wm.impl.ToolWindowsPane$AddToolStripeButtonCmd.run(ToolWindowsPane.java:983)
    at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
    at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
    at com.intellij.openapi.wm.impl.CommandProcessor.flush(CommandProcessor.java:32)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.flushCommands(ToolWindowManagerImpl.java:609)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.access$2900(ToolWindowManagerImpl.java:76)
    at com.intellij.openapi.wm.impl.ToolWindowManagerImpl$InitToolWindowsActivity.lambda$runActivity$0(ToolWindowManagerImpl.java:2299)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:722)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
    at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:864)
    at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:205)
    at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:588)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:446)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:109)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:214)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProjectWithProgress(ProjectManagerImpl.java:542)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.convertAndLoadProject(ProjectManagerImpl.java:528)
    at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:203)
    at com.intellij.ide.RecentProjectsManagerBase.doOpenProject(RecentProjectsManagerBase.java:579)
    at com.intellij.ide.RecentProjectsManagerBase.doReopenLastProject(RecentProjectsManagerBase.java:706)
    at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:748)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:117)
    at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:426)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:387)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:376)
    at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:357)
    at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:43)
    at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:208)
    at com.sun.proxy.$Proxy76.appStarting(Unknown Source)
    at com.intellij.idea.IdeaApplication$IdeStarter.lambda$main$1(IdeaApplication.java:374)
    at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
    at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
    at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
    at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
    at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:372)
    at com.intellij.idea.IdeaApplication.lambda$run$1(IdeaApplication.java:212)
    at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:212)
    at com.intellij.idea.IdeaApplication.lambda$initApplication$0(IdeaApplication.java:75)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
    at java.awt.EventQueue.access$500(EventQueue.java:98)
    at java.awt.EventQueue$3.run(EventQueue.java:715)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:361)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
ofry commented 5 years ago

GitLab Integration Plugin v1.1.0

dneves commented 5 years ago

Hi. Thanks for the info. That is probably due to configuration missing. I'll try and show a proper message instead of a nullpointer in the next versions.

for now, can you make sure you fill in the configuration needed in the preferences window and click refresh on the tool window?

thanks