Fix exception in verbose mode sessions listing

(cherry picked from commit 5322a682f6)
4.x
Matthew Kienow 2018-05-05 00:50:07 -04:00
parent 07d754f637
commit 2d69675650
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ class ReadableText
sess_checkin = "#{(Time.now.to_i - session.last_checkin.to_i)}s ago @ #{session.last_checkin.to_s}"
end
if session.payload_uuid.registered
if !session.payload_uuid.nil? && session.payload_uuid.registered
sess_registration = "Yes"
if session.payload_uuid.name
sess_registration << " - Name=\"#{session.payload_uuid.name}\""