Commit 94b95dfc by Tuomas Riihimäki

Nullpointer from rest

1 parent d0e3a491
......@@ -33,7 +33,11 @@ public class PrintedCardRestPojo {
@XmlElement(name = "cardTemplate")
public String getTemplate()
{
return card.getTemplate().getName();
String ret = null;
if (card.getTemplate() != null)
ret = card.getTemplate().getName();
return ret;
}
@XmlElement(name = "username")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!