Fixed possible npe of tabel.

This commit is contained in:
LevelX2 2014-09-11 00:17:24 +02:00
parent dc3d6e7aa5
commit 97eae36ddf

View file

@ -155,8 +155,11 @@ public class Table implements Serializable {
} }
public String getDeckType() { public String getDeckType() {
if (validator != null) {
return validator.getName(); return validator.getName();
} }
return "<deckt type missing>";
}
public Date getCreateTime() { public Date getCreateTime() {
return new Date(createTime.getTime()); return new Date(createTime.getTime());