[F] Handle null case

This commit is contained in:
Hykilpikonna
2021-03-07 17:01:59 -05:00
parent effc4a7dde
commit 73e61e2f54
@@ -62,6 +62,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
}
catch (e: Exception) { e.printStackTrace(); null }
}
if (list == null) return "Error: Failed to obtain player info list".red()
// Create result
val pageMax = ceil(list.size.toDouble() / pageSize).toInt()