Skip to content

Commit

Permalink
add testcase for issue #482
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jun 17, 2022
1 parent 3216370 commit fe82e3c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/src/test/java/com/alibaba/fastjson2/issues/Issue482.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.alibaba.fastjson2.issues;

import com.alibaba.fastjson2.JSON;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertNull;

public class Issue482 {
@Test
public void test() {
assertNull(JSON.parseObject((String) null));
}
}

0 comments on commit fe82e3c

Please sign in to comment.