Skip to content

Commit

Permalink
Merge pull request #6157 from seadowg/nullable
Browse files Browse the repository at this point in the history
Fix nullable value
  • Loading branch information
grzesiek2010 committed May 27, 2024
2 parents fcbddb6 + bd2fcb9 commit e909810
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ class ImageCompressionController(private val imageCompressor: ImageCompressor) {
for (bindAttribute in questionWidget.formEntryPrompt.bindAttributes) {
if ("max-pixels" == bindAttribute.name && ApplicationConstants.Namespaces.XML_OPENROSA_NAMESPACE == bindAttribute.namespace) {
try {
return bindAttribute.attributeValue.toInt()
return bindAttribute.attributeValue?.toInt()
} catch (e: NumberFormatException) {
Timber.i(e)
}
}
}

return null
}

Expand Down

0 comments on commit e909810

Please sign in to comment.