Skip to content

Commit e8c8dd8

Browse files
committed
Fix project properties problem that empty string is not saved #25
1 parent 959ff97 commit e8c8dd8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/org/netbeans/modules/php/wordpress/customizer/WordPressCustomizerExtender.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,17 +175,17 @@ public EnumSet<Change> save(PhpModule pm) {
175175
}
176176

177177
String wordPressRoot = getPanel().getWordPressRootDirectory();
178-
if (!StringUtils.isEmpty(wordPressRoot) && !originalCustomeContentName.equals(wordPressRoot)) {
178+
if (!originalCustomeContentName.equals(wordPressRoot)) {
179179
WordPressPreferences.setWordPressRootPath(phpModule, wordPressRoot);
180180
}
181181

182182
String plugins = getPanel().getPluginsDirectory();
183-
if (!StringUtils.isEmpty(plugins) && !originalCustomeContentName.equals(plugins)) {
183+
if (!originalCustomeContentName.equals(plugins)) {
184184
WordPressPreferences.setPluginsPath(phpModule, plugins);
185185
}
186186

187187
String themes = getPanel().getThemesDirectory();
188-
if (!StringUtils.isEmpty(themes) && !originalCustomeContentName.equals(themes)) {
188+
if (!originalCustomeContentName.equals(themes)) {
189189
WordPressPreferences.setThemesPath(phpModule, themes);
190190
}
191191

0 commit comments

Comments
 (0)