Print Format create from table fails ungracefully when there is no default print font defined

Description

I have removed the default font at some time in past. When I tried to create a Print Format from an existing table the process failed without an error message.

After examining the code I found that the same should happen when no default print color and/or print paper is set.
Also the MPrintFormat.createFromGridView and createFromReportView functions seem to have the same issue.

I'd propose to run a check and produce a meaningful error message before the creation is attempted.
I hope to find the time to create a fix soon.

Environment

None

Activity

Show:
Heng Sin Low
August 22, 2020, 11:28 AM

Reproduceable with 7.1z. NPE if there's no default font, color or print paper.

Assignee

Unassigned

Reporter

Andreas Sumerauer

Labels

Tested By

None

Components

Affects versions

Priority

Minor
Configure