Plugin: ticket 336 fix NPE

This commit is contained in:
sponge
2010-11-27 13:52:57 +00:00
parent f7c85a4746
commit 8c5fd29233
2 changed files with 10 additions and 5 deletions

View File

@ -234,12 +234,14 @@ public class PluginStarter implements Runnable {
} }
} }
*/ */
Iterator <String> wars = pluginWars.get(appName).iterator(); if(pluginWars.containsKey(appName)) {
while (wars.hasNext()) { Iterator <String> wars = pluginWars.get(appName).iterator();
String warName = wars.next(); while (wars.hasNext()) {
WebAppStarter.stopWebApp(server, warName); String warName = wars.next();
WebAppStarter.stopWebApp(server, warName);
}
pluginWars.get(appName).clear();
} }
pluginWars.get(appName).clear();
} }
// remove summary bar link // remove summary bar link

View File

@ -1,3 +1,6 @@
2010-11-27 sponge
* Plugin: ticket 336 fix NPE
2010-11-27 sponge 2010-11-27 sponge
* Slackware: bump i2p-base version, so that it can be upgraded with the new * Slackware: bump i2p-base version, so that it can be upgraded with the new
base code fixes. base code fixes.