Skip to content

Commit

Permalink
fix null i error and add name to info page
Browse files Browse the repository at this point in the history
  • Loading branch information
ethayer committed Sep 28, 2015
1 parent 17603a1 commit 99713cd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions user-lock-manager.smartapp.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* User Lock Manager v4.0.6
* User Lock Manager v4.0.7
*
* Copyright 2015 Erik Thayer
*
Expand Down Expand Up @@ -324,7 +324,9 @@ def infoPage() {
}
section("Locks") {
if (theLocks) {
def i = 0
theLocks.each { lock->
i++
href(name: "toLockInfoPage${i}", page: "lockInfoPage", params: [id: lock.id], required: false, title: lock.displayName )
}
}
Expand All @@ -345,8 +347,8 @@ def lockInfoPage(params) {
dynamicPage(name:"lockInfoPage", title:"Lock Info") {

def lock = getLock(params)
section() {
if (lock) {
if (lock) {
section("${lock.displayName}") {
if (state."lock${lock.id}".codes != null) {
def i = 0
def pass = ''
Expand Down

0 comments on commit 99713cd

Please sign in to comment.