Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
synergy-api-util
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raimbek Egemberdiev
synergy-api-util
Commits
4878c009
Commit
4878c009
authored
Nov 16, 2016
by
Raimbek Egemberdiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
компонент DateCmp исправлена ошибка NullPointerException
parent
9bdab9d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/main/java/kz/arta/synergy/api/asforms/converter/components/DateConverter.java
...nergy/api/asforms/converter/components/DateConverter.java
+10
-3
No files found.
src/main/java/kz/arta/synergy/api/asforms/converter/components/DateConverter.java
View file @
4878c009
...
@@ -23,10 +23,17 @@ public class DateConverter extends AbstractComponentConverter {
...
@@ -23,10 +23,17 @@ public class DateConverter extends AbstractComponentConverter {
if
(
field
.
getType
().
isAssignableFrom
(
Date
.
class
))
{
if
(
field
.
getType
().
isAssignableFrom
(
Date
.
class
))
{
Date
date
=
(
Date
)
field
.
get
(
asForm
);
Date
date
=
(
Date
)
field
.
get
(
asForm
);
if
(
date
==
null
)
{
return
asFormData
;
}
String
dateFormat
=
getDateFormat
(
annotation
);
String
dateFormat
=
getDateFormat
(
annotation
);
String
dateValue
=
new
SimpleDateFormat
(
dateFormat
).
format
(
date
);
try
{
asFormData
.
setValue
(
dateValue
);
String
dateValue
=
new
SimpleDateFormat
(
dateFormat
).
format
(
date
);
asFormData
.
setKey
(
dateValue
);
asFormData
.
setValue
(
dateValue
);
asFormData
.
setKey
(
dateValue
);
}
catch
(
Exception
ex
)
{
return
asFormData
;
}
}
else
{
}
else
{
asFormData
.
setKey
(
String
.
valueOf
(
field
.
get
(
asForm
)));
asFormData
.
setKey
(
String
.
valueOf
(
field
.
get
(
asForm
)));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment