fixed possible NPE

This commit is contained in:
Mariotaku Lee 2017-04-03 20:47:47 +08:00
parent eb6318bede
commit f20b618531
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
4 changed files with 7 additions and 7 deletions

View File

@ -58,7 +58,8 @@ subprojects {
MultiValueSwitch : '0.9.8',
PickNCrop : '0.9.24',
AndroidGIFDrawable: '1.2.6',
KPreferences : '0.9.6'
KPreferences : '0.9.6',
Kovenant : '3.3.0'
]
}

View File

@ -189,10 +189,10 @@ dependencies {
compile 'com.github.mariotaku:Chameleon:0.9.16'
compile "org.jetbrains.kotlin:kotlin-stdlib:${libVersions['Kotlin']}"
compile 'nl.komponents.kovenant:kovenant:3.3.0'
compile 'nl.komponents.kovenant:kovenant-android:3.3.0'
compile 'nl.komponents.kovenant:kovenant-functional:3.3.0'
compile 'nl.komponents.kovenant:kovenant-combine:3.3.0'
compile "nl.komponents.kovenant:kovenant:${libVersions['Kovenant']}"
compile "nl.komponents.kovenant:kovenant-android:${libVersions['Kovenant']}"
compile "nl.komponents.kovenant:kovenant-functional:${libVersions['Kovenant']}"
compile "nl.komponents.kovenant:kovenant-combine:${libVersions['Kovenant']}"
}
task svgToDrawable(type: SvgDrawableTask) {

View File

@ -214,7 +214,7 @@ class GetMessagesTask(
maxId(maxId)
}
}).userInbox
}
} ?: throw MicroBlogException("Null response data")
return createDatabaseUpdateData(context, details, response, profileImageSize)
}

View File

@ -20,7 +20,6 @@
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">