diff --git a/src/zutil/osal/app/linux/NutUPSClient.java b/src/zutil/osal/app/linux/NutUPSClient.java index c6cf37b..ec46cc5 100755 --- a/src/zutil/osal/app/linux/NutUPSClient.java +++ b/src/zutil/osal/app/linux/NutUPSClient.java @@ -47,7 +47,6 @@ public class NutUPSClient { this.host = host; this.port = port; this.pollTimer = new Timer(POLL_INTERVAL); - update(); } diff --git a/src/zutil/parser/Templator.java b/src/zutil/parser/Templator.java index 7deecb5..9db62c3 100755 --- a/src/zutil/parser/Templator.java +++ b/src/zutil/parser/Templator.java @@ -102,7 +102,7 @@ public class Templator { */ public Templator(File tmpl) throws IOException { if(tmpl == null) - throw new IllegalArgumentException("File can not be null!"); + throw new IOException("File can not be null!"); this.data = new HashMap(); this.file = tmpl; parseTemplate(FileUtil.getContent(file));