EA-63731 - IAE: AbstractGithubTagDownloadedProjectGenerator.generateProject
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 12 Feb 2015 10:32:39 +0000 (13:32 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Thu, 12 Feb 2015 10:32:39 +0000 (13:32 +0300)
platform/lang-impl/src/com/intellij/lang/javascript/boilerplate/AbstractGithubTagDownloadedProjectGenerator.java

index 60151b27006c91c6065d9ac4d7c6420926ab013c..247aae9377a7b92dabd5c67eac232ce699108dee 100644 (file)
@@ -60,7 +60,10 @@ public abstract class AbstractGithubTagDownloadedProjectGenerator extends WebPro
 
   @Override
   public void generateProject(@NotNull final Project project, @NotNull final VirtualFile baseDir,
-                              @NotNull GithubTagInfo tag, @NotNull Module module) {
+                              @Nullable GithubTagInfo tag, @NotNull Module module) {
+    if (tag == null) {
+      return;
+    }
     try {
       unpackToDir(project, VfsUtilCore.virtualToIoFile(baseDir), tag);
     }