aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakozak2011-12-01 08:15:18 (EST)
committerWinston Prakash2011-12-01 20:47:40 (EST)
commitf19e17b9eddae5c7e9b7c34df54c3c20a27eb0bf (patch)
tree053aaa07994c212a8974476f0b3f408c54945335
parent2c5ed3bdaa687a04822bf3be7bbfd766e29ed229 (diff)
downloadorg.eclipse.hudson.core-f19e17b9eddae5c7e9b7c34df54c3c20a27eb0bf.zip
org.eclipse.hudson.core-f19e17b9eddae5c7e9b7c34df54c3c20a27eb0bf.tar.gz
org.eclipse.hudson.core-f19e17b9eddae5c7e9b7c34df54c3c20a27eb0bf.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;
}
}