Fix NPE for case when Installed tab not shown yet
authorAlexander Lobas <Alexander.Lobas@jetbrains.com>
Wed, 12 Aug 2020 16:15:35 +0000 (19:15 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Wed, 12 Aug 2020 16:19:20 +0000 (16:19 +0000)
GitOrigin-RevId: eccb669d3d1c3c7eb2578caa5b9c2a5e57b67585

platform/platform-impl/src/com/intellij/ide/plugins/newui/MyPluginModel.java

index 8991961ec53fe9cf5f4412100f7cfb8afc28d344..eab65dbd34be7c3cf452dbd4ea966f5b0f94ff2f 100644 (file)
@@ -256,7 +256,7 @@ public class MyPluginModel extends InstalledPluginsTableModel implements PluginM
   public void addComponent(@NotNull ListPluginComponent component) {
     if (!component.isMarketplace()) {
       if (myInstallingPlugins.contains(component.myPlugin) &&
-          (myInstalling.ui == null || myInstalling.ui.findComponent(component.myPlugin) == null)) {
+          (myInstalling == null || myInstalling.ui == null || myInstalling.ui.findComponent(component.myPlugin) == null)) {
         return;
       }