Skip to content

Commit

Permalink
Add null check for line count call
Browse files Browse the repository at this point in the history
  • Loading branch information
AFADoomer committed May 1, 2022
1 parent 7758d20 commit ac36fe9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/libraries/breakstring.zs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class BrokenString : Object

int Count()
{
if (!lines) { return 0; }
return lines.Size();
}

Expand Down

0 comments on commit ac36fe9

Please sign in to comment.