Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dca42f4c
authored
Jun 05, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nullpointerexception -fix
1 parent
eeb3fc26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
code/MoyaWeb/src/fi/codecrew/moya/web/flow/IncomingView.java
code/MoyaWeb/src/fi/codecrew/moya/web/flow/IncomingView.java
View file @
dca42f4
package
fi
.
codecrew
.
moya
.
web
.
flow
;
package
fi
.
codecrew
.
moya
.
web
.
flow
;
import
java.util.ArrayList
;
import
javax.ejb.EJB
;
import
javax.ejb.EJB
;
import
javax.enterprise.context.ConversationScoped
;
import
javax.enterprise.context.ConversationScoped
;
import
javax.faces.application.FacesMessage
;
import
javax.faces.application.FacesMessage
;
...
@@ -253,8 +255,13 @@ public class IncomingView extends GenericCDIView {
...
@@ -253,8 +255,13 @@ public class IncomingView extends GenericCDIView {
}
}
public
ListDataModel
<
CardCode
>
getCardCodes
()
{
public
ListDataModel
<
CardCode
>
getCardCodes
()
{
if
(
userview
.
getPrintedCard
()
==
null
)
return
new
ListDataModel
<
CardCode
>(
new
ArrayList
<
CardCode
>());
cardCodes
=
new
ListDataModel
<
CardCode
>(
userview
.
getPrintedCard
().
getCardCodes
());
cardCodes
=
new
ListDataModel
<
CardCode
>(
userview
.
getPrintedCard
().
getCardCodes
());
return
cardCodes
;
return
cardCodes
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment