OTTAA-Project / OTTAAProject

Join us to create the first Augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
5 stars 2 forks source link

[Bug]: Json.java line 757 #163

Closed gonojuarez closed 1 year ago

gonojuarez commented 1 year ago

Contact Details

gonojuarez17@gmail.com

What happened?

A bug happened! That's a crash bug related to the JSON file.

Version

6.7.x (Production)

Where are you seeing the problem on?

Android

Relevant log output

Fatal Exception: java.util.ConcurrentModificationException:
       at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:346)
       at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:375)
       at java.util.LinkedHashMap$EntryIterator.next(LinkedHashMap.java:373)
       at org.json.JSONObject.writeTo(JSONObject.java:719)
       at org.json.JSONStringer.value(JSONStringer.java:237)
       at org.json.JSONArray.writeTo(JSONArray.java:613)
       at org.json.JSONArray.toString(JSONArray.java:585)
       at com.stonefacesoft.ottaa.JSONutils.Json.isFileOk(Json.java:757)
       at com.stonefacesoft.ottaa.JSONutils.Json.guardarJson(Json.java:734)
       at com.stonefacesoft.ottaa.Principal.createRelationShip(Principal.java:998)
       at com.stonefacesoft.ottaa.Principal.click(Principal.java:988)
       at com.stonefacesoft.ottaa.Principal.function_clickOption(Principal.java:1585)
       at com.stonefacesoft.ottaa.Principal.onClickOption(Principal.java:1832)
       at com.stonefacesoft.ottaa.Principal.onClick(Principal.java:1189)
       at android.view.View.performClick(View.java:4807)
       at android.view.View$PerformClick.run(View.java:20106)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:194)
       at android.app.ActivityThread.main(ActivityThread.java:5576)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:955)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:750)

Code of Conduct