mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Fix problems reading quota values: NullPointerException
This commit is contained in:
parent
67d800027c
commit
409e8d6671
@ -139,7 +139,9 @@ public class WebdavEntry {
|
|||||||
try {
|
try {
|
||||||
mQuotaUsedBytes = new BigDecimal(quotaUsedBytesSt);
|
mQuotaUsedBytes = new BigDecimal(quotaUsedBytesSt);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
Log_OC.w(TAG, "No value for QuotaUsedBytes");
|
Log_OC.w(TAG, "No value for QuotaUsedBytes - NumberFormatException");
|
||||||
|
} catch (NullPointerException e ){
|
||||||
|
Log_OC.w(TAG, "No value for QuotaUsedBytes - NullPointerException");
|
||||||
}
|
}
|
||||||
Log_OC.d(TAG , "QUOTA_USED_BYTES " + quotaUsedBytesSt );
|
Log_OC.d(TAG , "QUOTA_USED_BYTES " + quotaUsedBytesSt );
|
||||||
}
|
}
|
||||||
@ -151,6 +153,8 @@ public class WebdavEntry {
|
|||||||
try {
|
try {
|
||||||
mQuotaAvailableBytes = new BigDecimal(quotaAvailableBytesSt);
|
mQuotaAvailableBytes = new BigDecimal(quotaAvailableBytesSt);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
|
Log_OC.w(TAG, "No value for QuotaAvailableBytes - NumberFormatException");
|
||||||
|
} catch (NullPointerException e ){
|
||||||
Log_OC.w(TAG, "No value for QuotaAvailableBytes");
|
Log_OC.w(TAG, "No value for QuotaAvailableBytes");
|
||||||
}
|
}
|
||||||
Log_OC.d(TAG , "QUOTA_AVAILABLE_BYTES " + quotaAvailableBytesSt );
|
Log_OC.d(TAG , "QUOTA_AVAILABLE_BYTES " + quotaAvailableBytesSt );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user