appium-uiautomator2-server icon indicating copy to clipboard operation
appium-uiautomator2-server copied to clipboard

Sending null as text to SendKeys() results in string "null"

Open DGCBio opened this issue 6 years ago • 1 comments

The current code in the appium-uiautomator2-server for SendKeysToElement.java contains this line:

image

JObject.getString(string) returns "null" when given null. So we would expect that there would be a JObject.isNull("text") line (or something like it) preceding it followed by proper handling (perhaps do nothing).

DGCBio avatar Apr 09 '18 20:04 DGCBio

Sorry for the lateness of this. This repo is not checked for issues.

But I cannot get this to reproduce. Do you happen to have Appium server logs for this? I'm at a loss as to how it would get through the proxying mechanism.

imurchie avatar Oct 12 '18 20:10 imurchie