Skip to content

Commit 5b476e4

Browse files
committed
Use correct order for checking the plugin version against the settings v
1 parent 388b87f commit 5b476e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cedricziel/idea/typo3/TYPO3CMSProjectComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void projectOpened() {
4848
}
4949

5050
String version = instance.getVersion();
51-
if (!version.equals(plugin.getVersion())) {
51+
if (version == null || !plugin.getVersion().equals(version)) {
5252
instance.setVersion(plugin.getVersion());
5353

5454
FileBasedIndex index = FileBasedIndex.getInstance();

0 commit comments

Comments
 (0)