Skip to content

Commit 767303a

Browse files
profile file may be deleted.
1 parent e73d238 commit 767303a

File tree

1 file changed

+1
-1
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-resource-connector-lib/src/main/java/com/microsoft/azure/toolkit/intellij/connector/dotazure

1 file changed

+1
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-resource-connector-lib/src/main/java/com/microsoft/azure/toolkit/intellij/connector/dotazure/AzureModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public AzureModule(@Nonnull final Module module, @Nullable VirtualFile dotAzure)
7878

7979
@SneakyThrows(value = {IOException.class, JDOMException.class})
8080
private void loadProfiles(@Nonnull final VirtualFile profilesXmlFile) {
81-
if (profilesXmlFile.contentsToByteArray().length < 1) {
81+
if (profilesXmlFile.contentsToByteArray().length < 1 && !profilesXmlFile.exists()) {
8282
return;
8383
}
8484
final Element profilesEle = JDOMUtil.load(Objects.requireNonNull(profilesXmlFile).toNioPath());

0 commit comments

Comments
 (0)