Skip to content

Commit c275894

Browse files
authored
0.79.1
- If tmp database file is zero size, error out.
1 parent 1fa900f commit c275894

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ subprojects {
44
apply plugin: 'maven-publish'
55

66
group 'org.iot-dsa'
7-
version '0.79.0'
7+
version '0.79.1'
88

99
targetCompatibility = JavaVersion.VERSION_1_8
1010
sourceCompatibility = JavaVersion.VERSION_1_8

dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/sys/backup/SysBackupService.java

+3
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ private File saveTmpFile(File nodes) throws Exception {
269269
writer.flush();
270270
out.getFD().sync();
271271
writer.close();
272+
if (tmpNodes.length() <= 0) {
273+
throw new IllegalStateException(name + " has no data!");
274+
}
272275
return tmpNodes;
273276
}
274277

0 commit comments

Comments
 (0)