mirror of
https://github.com/status-im/react-native-dialogs.git
synced 2026-08-31 11:11:08 +00:00
Fix NullPointerException, when there's nothing item selected (index -1)
This commit is contained in:
@@ -164,7 +164,7 @@ public class DialogAndroid extends ReactContextBaseJavaModule {
|
||||
@Override
|
||||
public void onSelection(MaterialDialog materialDialog, View view, int i,
|
||||
CharSequence charSequence) {
|
||||
callback.invoke("itemsCallback", i, charSequence.toString());
|
||||
callback.invoke("itemsCallback", i, charSequence == null ? null : charSequence.toString());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user