Commit dca42f4c by Tuukka Kivilahti

nullpointerexception -fix

1 parent eeb3fc26
package fi.codecrew.moya.web.flow;
import java.util.ArrayList;
import javax.ejb.EJB;
import javax.enterprise.context.ConversationScoped;
import javax.faces.application.FacesMessage;
......@@ -253,8 +255,13 @@ public class IncomingView extends GenericCDIView {
}
public ListDataModel<CardCode> getCardCodes() {
if(userview.getPrintedCard() == null)
return new ListDataModel<CardCode>(new ArrayList<CardCode>());
cardCodes = new ListDataModel<CardCode>(userview.getPrintedCard().getCardCodes());
return cardCodes;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!