Empty highlight param highlight=[] returns NullPointerExeption

Issue #58 resolved
Justin Hayes created an issue

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)

  1. Holger Schimanski repo owner

    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).

  2. Log in to comment