Commit e8e1c8a5 authored by Grand Francois's avatar Grand Francois
Browse files

#45 ParamValues.hasMultipleValues() : correction de crash (de l'appel à...

 #45 ParamValues.hasMultipleValues() : correction de crash (de l'appel à this.getValuesIterator()) dans le cas du mode LINK sans aucune valeur liable compatible
Showing with 11 additions and 1 deletion
+11 -1
...@@ -329,7 +329,17 @@ export class ParamValues implements INubReference, IterableValues { ...@@ -329,7 +329,17 @@ export class ParamValues implements INubReference, IterableValues {
} }
public get hasMultipleValues(): boolean { public get hasMultipleValues(): boolean {
const it = this.isReferenceDefined ? this.referencedValuesIterator : this.getValuesIterator(); if (this.isReferenceDefined)
var it = this.referencedValuesIterator;
else {
// dans certains cas (mode LINK mais aucune valeur liable compatible), on ne peut avoir d'itérateur
if (this._valueMode !== ParamValueMode.LINK)
it = this.getValuesIterator();
}
if (it === undefined)
return false;
let n = 0; let n = 0;
for (const v of it) { for (const v of it) {
n++; n++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment