Empty highlight param highlight=[] returns NullPointerExeption
Issue #58
resolved
We updared from 1.9.0 to latest 2.1.2 tonight and this is causing some issues.
Firstly line numbers are no longer on by default.
Worse though is it now seems to not like highlight=[] that we had in lots of previous blocks.
We use a button to add this into comments which we then fill in
{panel:title=}{code:|highlight=[]}
{code}{panel}
leaving the highlight element empty before was ok, but now we get
Error formatting macro: code: java.lang.NumberFormatException: For input string: ""
Thanks,
Justin
Comments (4)
-
repo owner -
repo owner -
assigned issue to
- changed title to Empty highlight param highlight=[] returns NullPointerExeption
-
assigned issue to
-
repo owner - changed milestone to 2.2.0
-
repo owner - changed status to resolved
- Log in to comment
Will have a look at it. Should not be tricky to fix, because I simply need to check for empty string.
By the way, you can use {code:|title=} instead of {panel:title=}{code...} (see
#7). Showning line numbers by default was removed to follow same approach as in standard JIRA and confluence (see#32).