We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fa900f commit c275894Copy full SHA for c275894
build.gradle
@@ -4,7 +4,7 @@ subprojects {
4
apply plugin: 'maven-publish'
5
6
group 'org.iot-dsa'
7
- version '0.79.0'
+ version '0.79.1'
8
9
targetCompatibility = JavaVersion.VERSION_1_8
10
sourceCompatibility = JavaVersion.VERSION_1_8
dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/sys/backup/SysBackupService.java
@@ -269,6 +269,9 @@ private File saveTmpFile(File nodes) throws Exception {
269
writer.flush();
270
out.getFD().sync();
271
writer.close();
272
+ if (tmpNodes.length() <= 0) {
273
+ throw new IllegalStateException(name + " has no data!");
274
+ }
275
return tmpNodes;
276
}
277
0 commit comments