The switch (data. GetAction_name ()) {& lt; Here -- -- -- -- -- -- -- 170 lines of error data. GetAction_name () returns the string
Case "app_install" :
DownloadFile (data, new ActionResult ());
break;
Case "app_uninstall" :
UnInstallApp (data, new ActionResult ());
break;
Case "app_run" :
StartApp (data, new ActionResult ());
break;
Case "app_stop" :
StopApp (data, new ActionResult ());
break;
Packaging add confusion is normal, not confuse the correct packaging is
FATAL EXCEPTION: the main
Process: cn. Mdisplay. Anboard, PID: 1371
Java. Lang. NullPointerException: Attempt to invoke virtual method 'int Java. Lang. String. HashCode ()' on a null object reference
At cn. Mdisplay. Anboard. Main. SmtService. A. (170) SmtService. Java:
CodePudding user response:
Estimated with the help of reflection, using the reflection must be confused with white list, data. GetAction_name () is null, getAction_name () is how to write in it?