Skip to content

Commit

Permalink
Merge pull request #984 from nextcloud/backport/983/stable-2.12
Browse files Browse the repository at this point in the history
[stable-2.12] OkHttpMethodBase: prevent NPE when logging exception
  • Loading branch information
AlvaroBrey authored Oct 31, 2022
2 parents c2a5f5e + 60093d8 commit d1ea458
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ abstract class OkHttpMethodBase(
try {
response = client.client.newCall(request).execute()
} catch (ex: IOException) {
Log_OC.e(this, ex.message, ex)
Log_OC.e(this, "Error executing method", ex)
}

return response?.code ?: UNKNOWN_STATUS_CODE
Expand Down

0 comments on commit d1ea458

Please sign in to comment.