bd2019us created EAGLE-1096:
-------------------------------
Summary: getJSONArray may cause exception, optJSONArray should be
used
Key: EAGLE-1096
URL: https://issues.apache.org/jira/browse/EAGLE-1096
Project: Eagle
Issue Type: Bug
Reporter: bd2019us
Hello,
The method call jsonBeansObject.getJSONArray("beans") may throw JSONException
when the key does not exist, which will crash the program. To ensure safety,
optJSONArray is recommended to use, which will avoid the exception in case no
such key.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)