Do not throw an empty ServerErrorMessage exception if the renewal succeeds.
authorkenstir <kenstir@gmail.com>
Sun, 3 Nov 2013 02:34:32 +0000 (22:34 -0400)
committerkenstir <kenstir@gmail.com>
Sun, 3 Nov 2013 02:34:32 +0000 (22:34 -0400)
Open-ILS/src/Android/src/org/evergreen/android/accountAccess/AccountAccess.java

index 7a05395..84930c0 100644 (file)
@@ -691,7 +691,7 @@ public class AccountAccess {
 
         Map<String, String> resp = (Map<String, String>) a_lot;
 
-        if (resp.get("textcode") != null) {
+        if (resp.get("textcode") != null && !resp.get("textcode").equals("SUCCESS")) {
             if (resp.get("textcode").equals("MAX_RENEWALS_REACHED"))
                 throw new MaxRenewalsException();
             throw new ServerErrorMessage(resp.get("desc").toString());