aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-12-01 08:15:18 (EST)
committerWinston Prakash2011-12-01 20:47:40 (EST)
commite8b628982aa03df8a981037a7765e3ff68aeb21f (patch)
tree48b326ecdad28ca28a7e396ce0e64810aaedfdc3
parentb641ad0e33ae165ad88dc42db1bf37fba24e82bc (diff)
downloadorg.eclipse.hudson.core-e8b628982aa03df8a981037a7765e3ff68aeb21f.zip
org.eclipse.hudson.core-e8b628982aa03df8a981037a7765e3ff68aeb21f.tar.gz
org.eclipse.hudson.core-e8b628982aa03df8a981037a7765e3ff68aeb21f.tar.bz2
Fixed NPE in update center if plugin contains "null" required core value.
Signed-off-by: Winston Prakash <winston.prakash@gmail.com>
-rw-r--r--hudson-core/src/main/java/hudson/model/UpdateSite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/hudson-core/src/main/java/hudson/model/UpdateSite.java b/hudson-core/src/main/java/hudson/model/UpdateSite.java
index e9dac61..73e6847 100644
--- a/hudson-core/src/main/java/hudson/model/UpdateSite.java
+++ b/hudson-core/src/main/java/hudson/model/UpdateSite.java
@@ -516,7 +516,7 @@ public class UpdateSite {
private String get(JSONObject o, String prop) {
if(o.has(prop)) {
String value = o.getString(prop);
- if (!"null".equals(value)) {
+ if (!"null".equals(value) && !"\"null\"".equals(value)) {
return value;
}
}