Fix PDF export if description is null

This commit is contained in:
jendib 2016-03-24 00:35:53 +01:00
parent 98350860eb
commit ef16561272

View File

@ -99,6 +99,10 @@ public class PdfPage implements Closeable {
* @throws IOException
*/
private void drawText(float paragraphWidth, PDFont font, int fontSize, String text, boolean centered) throws IOException {
if (text == null) {
return;
}
pdContent.setFont(font, fontSize);
int start = 0;
int end = 0;