Skip to content

Commit 5472243

Browse files
author
jantje
committed
#1268 implement boardDescription.isValid
This is only needed for data migration. I only check on the existance of the boards.txt file
1 parent 75737d2 commit 5472243

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

io.sloeber.core/src/io/sloeber/core/api/BoardDescription.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1128,8 +1128,10 @@ public static BoardDescription getFromCDT(ICConfigurationDescription confDesc) {
11281128
}
11291129

11301130
public boolean isValid() {
1131-
// TODO Auto-generated method stub
1132-
return false;
1131+
if (myreferencingBoardsFile == null) {
1132+
return false;
1133+
}
1134+
return myreferencingBoardsFile.exists();
11331135
}
11341136

11351137
}

0 commit comments

Comments
 (0)