Skip to content

Commit 5c90c68

Browse files
authored
fix stanames in oifitscollection : save computed value in the field (#55)
So funny bug !
1 parent 9eb3acf commit 5c90c68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/fr/jmmc/oitools/model/OIFitsCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public List<Granule> getSortedGranules(final Comparator<Granule> comparator) {
415415
*/
416416
public List<String> getDistinctStaNames() {
417417
if (this.distinctStaNames == null) {
418-
OIDataListHelper.getDistinctStaNames(getAllOiDatas(), getUsedStaNamesMap());
418+
this.distinctStaNames = OIDataListHelper.getDistinctStaNames(getAllOiDatas(), getUsedStaNamesMap());
419419
}
420420
return this.distinctStaNames;
421421
}
@@ -426,7 +426,7 @@ public List<String> getDistinctStaNames() {
426426
*/
427427
public List<String> getDistinctStaConfs() {
428428
if (this.distinctStaConfs == null) {
429-
OIDataListHelper.getDistinctStaConfs(getAllOiDatas());
429+
this.distinctStaConfs = OIDataListHelper.getDistinctStaConfs(getAllOiDatas());
430430
}
431431
return this.distinctStaConfs;
432432
}

0 commit comments

Comments
 (0)