mirror of
https://invent.kde.org/network/kdeconnect-android.git
synced 2025-12-12 20:35:58 +01:00
Fix NPE
This commit is contained in:
@@ -84,7 +84,7 @@ internal class RunCommandWidgetDataProvider(private val context: Context, val in
|
||||
}
|
||||
|
||||
override fun getItemId(i: Int): Long {
|
||||
return getPlugin()?.commandItems?.get(i)?.key?.hashCode()?.toLong() ?: 0
|
||||
return getPlugin()?.commandItems?.getOrNull(i)?.key?.hashCode()?.toLong() ?: 0
|
||||
}
|
||||
|
||||
override fun hasStableIds(): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user