fix(Scout): fix possible crash
This commit is contained in:
parent
d943e41fd3
commit
5ced2c7924
1 changed files with 3 additions and 1 deletions
|
|
@ -674,7 +674,9 @@ class Scout : Plugin() {
|
||||||
"compare",
|
"compare",
|
||||||
Object::class.java, // ?? :sob:
|
Object::class.java, // ?? :sob:
|
||||||
Object::class.java,
|
Object::class.java,
|
||||||
) { (param, ch1: Channel, ch2: Channel) ->
|
) { (param, ch1: Channel?, ch2: Channel?) ->
|
||||||
|
if (ch1 == null || ch2 == null) return@before
|
||||||
|
|
||||||
// ChannelUtils.H <=> ChannelUtils.isThread
|
// ChannelUtils.H <=> ChannelUtils.isThread
|
||||||
if (ChannelUtils.H(ch1) && !ChannelUtils.H(ch2)) {
|
if (ChannelUtils.H(ch1) && !ChannelUtils.H(ch2)) {
|
||||||
param.result = 1
|
param.result = 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue