Skip to content

Commit a33586c

Browse files
committed
OkHttpMethodBase: prevent NPE when logging exception
ex.message may be null Signed-off-by: Álvaro Brey <[email protected]>
1 parent f5d3dc3 commit a33586c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/nextcloud/common/OkHttpMethodBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ abstract class OkHttpMethodBase(
174174
try {
175175
response = client.client.newCall(request).execute()
176176
} catch (ex: IOException) {
177-
Log_OC.e(this, ex.message, ex)
177+
Log_OC.e(this, "Error executing method", ex)
178178
}
179179

180180
return response?.code ?: UNKNOWN_STATUS_CODE

0 commit comments

Comments
 (0)