Skip to content

Commit fe41d47

Browse files
author
jantje
committed
cope better with missing info
1 parent 3e3b072 commit fe41d47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

io.sloeber.core/src/io/sloeber/core/tools/TxtFile.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ public String getArchitecture() {
429429

430430
IPath platformFile = new Path(this.mLastLoadedTxtFile.toString().trim());
431431
String architecture = platformFile.removeLastSegments(1).lastSegment();
432+
if (architecture==null) {//for error conditions
433+
architecture="avr"; //$NON-NLS-1$
434+
}
432435
if (architecture.contains(Const.DOT)) { // This is a version number so
433436
// package
434437
architecture = platformFile.removeLastSegments(2).lastSegment();

0 commit comments

Comments
 (0)