Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1583 from CrackerStealth/opensprinklerenhance
Browse files Browse the repository at this point in the history
OpenSprinkler: Null Pointer on Startup Fix
  • Loading branch information
kaikreuzer committed Oct 22, 2014
2 parents ba64f2b + 7eaa866 commit 129056d
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -65,8 +65,8 @@ public OpenSprinklerBinding() {
}

public void activate() {
super.activate();
updateBinding();
super.activate();
}

public void deactivate() {
Expand Down Expand Up @@ -96,6 +96,12 @@ protected long getRefreshInterval() {
*/
@Override
protected void execute() {
if ( openSprinkler == null ) {
logger.debug("State is not being updated with the OpenSprinkler device because access not initialized.");

return;
}

logger.debug("State is being updated with the OpenSprinkler device.");

/* Parse through all stations and update their state value */
Expand Down

0 comments on commit 129056d

Please sign in to comment.