1
0
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:
Loic Blot 2017-10-30 08:34:17 +01:00
parent a72583894e
commit eae84dadfb
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

View File

@ -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()) {