Skip to content

Commit ff30883

Browse files
author
magiclu550
committed
[commit] #1061 some comments
1 parent 4dcc3ad commit ff30883

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

JPLS/src/main/java/cn/jsmod2/core/protocol/Requester.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public Requester(Server sender, ControlPacket packet){
3939
}
4040

4141
public Requester with(String key,Object value){
42+
if(value == null)return this;
4243
_map.put(key,value instanceof ApiId?((ApiId) value).getApiId():value instanceof Enum?"'"+value+"'":value.getClass().isArray()||value instanceof List?JSON.toJSONString(value):value.toString());
4344
return this;
4445
}

0 commit comments

Comments
 (0)