Skip to content

Commit 9c34d7d

Browse files
authored
Fix NPE when loading cloudwatch log streams with no last event timestamp (#3009)
1 parent 08a5845 commit 9c34d7d

File tree

1 file changed

+1
-1
lines changed
  • jetbrains-core/src/software/aws/toolkits/jetbrains/services/cloudwatch/logs/editor

1 file changed

+1
-1
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/cloudwatch/logs/editor/TableUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class LogStreamsDateColumn(
5454

5555
override fun isCellEditable(item: LogStream?): Boolean = false
5656
override fun getRenderer(item: LogStream?): TableCellRenderer = renderer
57-
override fun getComparator(): Comparator<LogStream>? = if (sortable) Comparator.comparing { it.lastEventTimestamp() } else null
57+
override fun getComparator(): Comparator<LogStream>? = if (sortable) Comparator.comparing { it.lastEventTimestamp() ?: Long.MIN_VALUE } else null
5858
}
5959

6060
class LogStreamDateColumn(private val format: SyncDateFormat? = null) : ColumnInfo<LogStreamEntry, String>(message("general.time")) {

0 commit comments

Comments
 (0)