Skip to content

Commit

Permalink
Fix NPE.
Browse files Browse the repository at this point in the history
  • Loading branch information
maniac103 committed Mar 24, 2017
1 parent 28195ca commit 8d7777a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/github/mobile/util/HtmlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,9 @@ public ListItem(List list, Attributes attrs) {
position = parseIntAttribute(attrs, "value", position);
}
mPosition = position;
list.mPosition = position + 1;
if (list != null) {
list.mPosition = position + 1;
}
}
}

Expand Down

0 comments on commit 8d7777a

Please sign in to comment.