OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 174 | Rev 182 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 180
Line 515... Line 515...
515
            }
515
            }
516
 
516
 
517
            if (this.hasRow()) {
517
            if (this.hasRow()) {
518
                final int size = this.getRowsCount();
518
                final int size = this.getRowsCount();
519
                if (jsonContext.size() != size) {
519
                if (jsonContext.size() != size) {
520
                    System.err.println("LightUITable.setValueFromContext() - Incorrect line count in JSON");
520
                    throw new IllegalStateException("LightUITable.setValueFromContext() - Incorrect line count in JSON, row count:" + size + " context:" + jsonContext.size() + " (" + value + ")");
521
                } else {
521
                } else {
522
 
522
 
523
                    for (int i = 0; i < size; i++) {
523
                    for (int i = 0; i < size; i++) {
524
                        final Row row = this.getRow(i);
524
                        final Row row = this.getRow(i);
525
                        final JSONObject jsonLineContext = JSONConverter.getObjectFromJSON(jsonContext.get(i), JSONObject.class);
525
                        final JSONObject jsonLineContext = JSONConverter.getObjectFromJSON(jsonContext.get(i), JSONObject.class);