diff --git a/src/main/kotlin/de/gmuth/ipp/client/IppJob.kt b/src/main/kotlin/de/gmuth/ipp/client/IppJob.kt index b210ff3f..dbba1104 100644 --- a/src/main/kotlin/de/gmuth/ipp/client/IppJob.kt +++ b/src/main/kotlin/de/gmuth/ipp/client/IppJob.kt @@ -407,7 +407,7 @@ class IppJob( if (it.containsKey("job-name")) append(", name=$name") if (it.containsKey("job-impressions-completed")) append(", impressions-completed=$impressionsCompleted") if (it.containsKey("job-originating-host-name")) append(", originating-host-name=$originatingHostName") - if (it.containsKey("job-originating-user-name") && it.get("job-originating-user-name")!!.tag.`is ValueTag and is not OutOfBandTag`()) + if (it["job-originating-user-name"]?.tag?.`is ValueTag and is not OutOfBandTag`() == true) append(", originating-user-name=$originatingUserName") if (it.containsKey("com.apple.print.JobInfo.PMJobOwner")) append(", appleJobOwner=$appleJobOwner") if (it.containsKey("number-of-documents") || it.containsKey("document-count"))