FINERACT-1724: Fineract Idempotency status null fix
- [x] Return 500 when the idempotency status is inconsistent in the database - [x] Unit test for the mapper to avoid NullPointerException
This commit is contained in:
+4
@@ -34,6 +34,10 @@ public class IdempotentCommandProcessFailedException extends AbstractIdempotentC
|
||||
}
|
||||
|
||||
public Integer getStatusCode() {
|
||||
// If the database inconsistent we return http 500 instead of null pointer exception
|
||||
if (statusCode == null) {
|
||||
return 500;
|
||||
}
|
||||
return statusCode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user