You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by jo...@apache.org on 2021/12/28 08:27:17 UTC

[isis] branch ISIS-2878 updated: ISIS-2878 additional null checks required (runtime only !!!) - else access from Tabulator.js would fail

This is an automated email from the ASF dual-hosted git repository.

joergrade pushed a commit to branch ISIS-2878
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/ISIS-2878 by this push:
     new ccf1e5f  ISIS-2878 additional null checks required (runtime only !!!) - else access from Tabulator.js would fail
ccf1e5f is described below

commit ccf1e5f77bfd9d693f186ef6fcb94a266be183b4
Author: Jörg Rade <jo...@kuehne-nagel.com>
AuthorDate: Tue Dec 28 09:26:44 2021 +0100

    ISIS-2878 additional null checks required (runtime only !!!) - else access from Tabulator.js would fail
---
 .../kotlin/org/apache/isis/client/kroviz/core/event/LogEntry.kt    | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/event/LogEntry.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/event/LogEntry.kt
index 989e66c..91c787f 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/event/LogEntry.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/event/LogEntry.kt
@@ -58,9 +58,10 @@ data class LogEntry(
     val request: String = "",
     @Contextual val createdAt: Date = Date()
 ) {
-    val url: String = rs.url
-
-    val subType = rs.subType
+    val url: String = rs?.url
+        //?. is required, otherwise Tabulator.js/EventLogTable shows no entries
+    val subType = rs?.subType
+    //?. is required, otherwise Tabulator.js/EventLogTable shows no entries
     var state = EventState.INITIAL
     var title: String = ""
     var requestLength: Int = 0 // must be accessible (public) for LogEntryTable