Skip to content

Commit 56454a8

Browse files
Check of initialText is emtpy string
1 parent 5cd6194 commit 56454a8

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

base/src/main/java/com/smartdevicelink/managers/screen/choiceset/BaseChoiceSetManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ public void onError(String error) {
365365
*/
366366
public void presentKeyboard(@NonNull String initialText, @Nullable KeyboardProperties customKeyboardConfig, @NonNull KeyboardListener listener){
367367

368+
if (initialText == null || initialText.length() == 0){
369+
DebugTool.logError("initialText cannot be an empty string.");
370+
return;
371+
}
372+
368373
if (!isReady()){ return; }
369374

370375
if (pendingPresentationSet != null && pendingPresentOperation != null){

base/src/main/java/com/smartdevicelink/managers/screen/choiceset/PresentKeyboardOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public void onResponse(int correlationId, RPCResponse response) {
110110

111111
@Override
112112
public void onError(int correlationId, Result resultCode, String info){
113-
DebugTool.logError("There was an error presenting the keyboard. Finishing operation - choice set manager - . Error: " + info);
113+
DebugTool.logError("There was an error presenting the keyboard. Finishing operation - choice set manager - . Error: " + info + " resultCode: " + resultCode);
114114
finishOperation();
115115
}
116116
});

0 commit comments

Comments
 (0)