Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 1e666de8
authored
Oct 25, 2014
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for null. Nullpointers can be safely avoided an they clutter the log
1 parent
d7548936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
code/moya-web/src/main/java/fi/codecrew/moya/web/flow/IncomingView.java
code/moya-web/src/main/java/fi/codecrew/moya/web/flow/IncomingView.java
View file @
1e666de
...
...
@@ -272,15 +272,18 @@ public class IncomingView extends GenericCDIView {
* @return Card filing info String or empty string.
*/
public
String
getCardFiling
()
{
String
ret
=
""
;
try
{
PrintedCard
card
=
cardBean
.
checkPrintedCard
(
userview
.
getSelectedUser
());
JsonObject
cardMeta
=
card
.
getMeta
();
JsonObject
cardFilingObject
=
cardMeta
.
getJsonObject
(
"card-filing"
);
return
cardFilingObject
.
getString
(
"cardplace"
);
if
(
card
!=
null
)
{
JsonObject
cardMeta
=
card
.
getMeta
();
JsonObject
cardFilingObject
=
cardMeta
.
getJsonObject
(
"card-filing"
);
ret
=
cardFilingObject
.
getString
(
"cardplace"
);
}
}
catch
(
Exception
e
)
{
logger
.
warn
(
"Could not get card filing info"
,
e
);
}
return
""
;
return
ret
;
}
public
String
printCard
()
{
...
...
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