Ignore empty content.
authorJan Lahoda <jlahoda@netbeans.org>
Fri, 10 Aug 2012 22:46:58 +0200
changeset 844033c4fe9cdc7
parent 843 d369795912df
child 845 e1bcc9e5ed31
child 847 1abf467d6406
Ignore empty content.
remoting/ide/api/src/org/netbeans/modules/jackpot30/remoting/api/LocalCache.java
     1.1 --- a/remoting/ide/api/src/org/netbeans/modules/jackpot30/remoting/api/LocalCache.java	Wed Aug 08 19:03:01 2012 +0200
     1.2 +++ b/remoting/ide/api/src/org/netbeans/modules/jackpot30/remoting/api/LocalCache.java	Fri Aug 10 22:46:58 2012 +0200
     1.3 @@ -96,7 +96,7 @@
     1.4  
     1.5              if (cancel.get()) return empty;
     1.6  
     1.7 -            if (infoContent != null) {
     1.8 +            if (infoContent != null && !infoContent.trim().isEmpty()) {
     1.9                  Object buildId = Pojson.load(LinkedHashMap.class, infoContent).get("BUILD_ID");
    1.10  
    1.11                  if (buildId != null && !(buildId = buildId.toString()).equals(previousVersion)) {