[workspace model] IDEA-247859 Fix NPE at getting libraries model in `IdeModifiableMod...
authorMikhail Mazurkevich <mikhail.mazurkevich@jetbrains.com>
Wed, 12 Aug 2020 13:55:45 +0000 (16:55 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Wed, 12 Aug 2020 19:30:29 +0000 (19:30 +0000)
GitOrigin-RevId: f1c78e46e571879168c5c978101db659d7335344

platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/IdeModifiableModelsProviderImpl.java

index b2d565fddabfb7b2f93ecffd841eb6e6c9d26107..893d63f06a18e5b81946ba840761aec94a58dcd6 100644 (file)
@@ -86,7 +86,7 @@ public class IdeModifiableModelsProviderImpl extends AbstractIdeModifiableModels
       @Override
       public Library getLibrary(Library library, String libraryName, String libraryLevel) {
         if (LibraryTablesRegistrar.PROJECT_LEVEL.equals(libraryLevel)) {
       @Override
       public Library getLibrary(Library library, String libraryName, String libraryLevel) {
         if (LibraryTablesRegistrar.PROJECT_LEVEL.equals(libraryLevel)) {
-          return myLibrariesModel.getLibraryByName(libraryName);
+          return getModifiableProjectLibrariesModel().getLibraryByName(libraryName);
         }
         return library;
       }
         }
         return library;
       }