Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Teacher App crashes during submissions if there are any JSON errors #62

Open
truedat101 opened this issue Dec 6, 2013 · 1 comment

Comments

@truedat101
Copy link
Contributor

A bad Student Client app can submit improperly. This will crash the teacher app:

E/AndroidRuntime(28556): Caused by: java.lang.NumberFormatException: Invalid int: ""
E/AndroidRuntime(28556): at java.lang.Integer.invalidInt(Integer.java:138)
E/AndroidRuntime(28556): at java.lang.Integer.parseInt(Integer.java:359)
E/AndroidRuntime(28556): at java.lang.Integer.parseInt(Integer.java:332)
E/AndroidRuntime(28556): at java.lang.Integer.valueOf(Integer.java:490)
E/AndroidRuntime(28556): at org.smilec.smile.bu.json.QuestionJSONParser.process(QuestionJSONParser.java:55)
E/AndroidRuntime(28556): at org.smilec.smile.bu.BoardManager.processQuestions(BoardManager.java:186)
E/AndroidRuntime(28556): at org.smilec.smile.bu.BoardManager.loadBoard(BoardManager.java:158)
E/AndroidRuntime(28556): at org.smilec.smile.bu.BoardManager.getBoard(BoardManager.java:63)
E/AndroidRuntime(28556): at org.smilec.smile.ui.GeneralActivity.loadBoard(GeneralActivity.java:711)
E/AndroidRuntime(28556): at org.smilec.smile.ui.GeneralActivity.access$1600(GeneralActivity.java:73)
E/AndroidRuntime(28556): at org.smilec.smile.ui.GeneralActivity$UpdateBoardTask.doInBackground(GeneralActivity.java:760)
E/AndroidRuntime(28556): at org.smilec.smile.ui.GeneralActivity$UpdateBoardTask.doInBackground(GeneralActivity.java:754)
E/AndroidRuntime(28556): at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/AndroidRuntime(28556): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/AndroidRuntime(28556): ... 3 more

@truedat101
Copy link
Contributor Author

We will beef up stability in a later release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant