Fix an NPE (#579)

When mainParameter is null (which is the default), calling
getMainParameterValue()/getMainParameterDescription() throws an NPE because it
tries to access a field on a null object.

Co-authored-by: Markus KARG <markus@headcrashing.eu>
2 files changed