mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-06-23 15:56:44 +00:00
Fix a NullPointerException reported by Play store
This commit is contained in:
parent
a72583894e
commit
eae84dadfb
@ -68,7 +68,7 @@ public interface ASyncSMSRecovery {
|
||||
|
||||
Integer nb = 0;
|
||||
try {
|
||||
while (obj.getLong("last_id") != start) {
|
||||
while (obj != null && obj.getLong("last_id") != start) {
|
||||
JSONObject messages = obj.getJSONObject("messages");
|
||||
Iterator<?> keys = messages.keys();
|
||||
while (keys.hasNext()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user