Skip to content

Commit

Permalink
Fix to avoid preview error for incorrect parameters (eclipse-birt#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky committed Dec 16, 2024
1 parent 6fa78f7 commit a9c058f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,12 @@ private static ParameterDefinition convertScalarParameter(IScalarParameterDefn e
long id = scalarParamHandle != null ? scalarParamHandle.getID() : 0L;
String pattern = scalarParamHandle == null ? "" //$NON-NLS-1$
: scalarParamHandle.getPattern();
if (pattern == null)
pattern = "";
String category = scalarParamHandle == null ? "" //$NON-NLS-1$
: scalarParamHandle.getCategory();
if (category == null)
category = "";
String displayFormat = engineParam.getDisplayFormat();
String displayName = engineParam.getDisplayName();
String helpText = engineParam.getHelpText();
Expand Down

0 comments on commit a9c058f

Please sign in to comment.