We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d28aee commit ebad1a6Copy full SHA for ebad1a6
example_kotlin/src/main/java/org/flyve/example_kotlin/MainActivity.kt
@@ -112,18 +112,20 @@ class MainActivity : AppCompatActivity() {
112
}
113
114
override fun onTaskError(error: Throwable) {
115
- Log.e(LOG, error.message)
+ error.message?.let { Log.e(LOG, it) }
116
117
})
118
inventoryTask.getJSON(object : InventoryTask.OnTaskCompleted {
119
override fun onTaskSuccess(data: String?) {
120
- Log.d(LOG, data)
+ if (data != null) {
121
+ Log.d(LOG, data)
122
+ }
123
//show btn share
124
btnShare.visibility = View.VISIBLE
125
126
127
override fun onTaskError(error: Throwable?) {
- Log.e(LOG, error?.message)
128
+ error?.message?.let { Log.e(LOG, it) }
129
130
131
0 commit comments