Skip to content

Commit 9568c32

Browse files
committed
fix: 兼容旧版本的org.json库
1 parent c52ca33 commit 9568c32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/b3log/solo/processor/CommentProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ private int syncCommentFromFishPI(long localaid, long remoteaid, int page, Reque
599599
JSONArray rslt;
600600
try {
601601
rslt = result.optJSONObject("data").optJSONObject("article").optJSONArray("articleComments");
602-
if (null == rslt || rslt.isEmpty()) {
602+
if (null == rslt || 0 == rslt.length()) {
603603
return 0;
604604
}
605605
final HashMap<String, String> idNameMapping = new HashMap<>();

0 commit comments

Comments
 (0)