File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/main/java/org/computate/frFR/java Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -6789,14 +6789,16 @@ public void addProperty(String propertyName
67896789 , Boolean remove
67906790 ) {
67916791 int i = propertiesNames .indexOf (propertyName );
6792- properties .add (new JsonObject ().put ("name" , propertyName )
6793- .put ("description" , propertiesDescriptions .get (i ))
6794- .put ("type" , propertiesTypes .get (i ))
6795- );
6796- if (remove ) {
6797- propertiesNames .remove (i );
6798- propertiesTypes .remove (i );
6799- propertiesDescriptions .remove (i );
6792+ if (i >= 0 ) {
6793+ properties .add (new JsonObject ().put ("name" , propertyName )
6794+ .put ("description" , propertiesDescriptions .get (i ))
6795+ .put ("type" , propertiesTypes .get (i ))
6796+ );
6797+ if (remove ) {
6798+ propertiesNames .remove (i );
6799+ propertiesTypes .remove (i );
6800+ propertiesDescriptions .remove (i );
6801+ }
68006802 }
68016803 }
68026804
You can’t perform that action at this time.
0 commit comments