Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eingang-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
eingang-manager
Commits
e50c3ad9
Commit
e50c3ad9
authored
1 year ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
SCCON fix NPE when label is missing
parent
b9ad3c74
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
enterprise-adapter/src/main/java/de/ozgcloud/eingang/enterprise/entry/FormDataMapper.java
+12
-2
12 additions, 2 deletions
.../de/ozgcloud/eingang/enterprise/entry/FormDataMapper.java
with
12 additions
and
2 deletions
enterprise-adapter/src/main/java/de/ozgcloud/eingang/enterprise/entry/FormDataMapper.java
+
12
−
2
View file @
e50c3ad9
package
de.ozgcloud.eingang.enterprise.entry
;
package
de.ozgcloud.eingang.enterprise.entry
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
...
@@ -54,11 +56,19 @@ public interface FormDataMapper {
...
@@ -54,11 +56,19 @@ public interface FormDataMapper {
}
}
default
Map
<
String
,
Object
>
mapFormField
(
EntryFormDataField
field
)
{
default
Map
<
String
,
Object
>
mapFormField
(
EntryFormDataField
field
)
{
return
Map
.
of
(
LABEL_KEY
,
field
.
getLabel
(),
VALUE_KEY
,
field
.
getValue
());
var
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
LABEL_KEY
,
field
.
getLabel
());
map
.
put
(
VALUE_KEY
,
field
.
getValue
());
return
Collections
.
unmodifiableMap
(
map
);
}
}
default
Map
<
String
,
Object
>
mapSubForm
(
EntryFormDataSubForm
subForm
)
{
default
Map
<
String
,
Object
>
mapSubForm
(
EntryFormDataSubForm
subForm
)
{
return
Map
.
of
(
LABEL_KEY
,
subForm
.
getLabel
(),
VALUE_KEY
,
mapFormItems
(
subForm
.
getFormItems
()));
var
map
=
new
HashMap
<
String
,
Object
>();
map
.
put
(
LABEL_KEY
,
subForm
.
getLabel
());
map
.
put
(
VALUE_KEY
,
mapFormItems
(
subForm
.
getFormItems
()));
return
Collections
.
unmodifiableMap
(
map
);
}
}
default
PostfachAddress
map
(
de
.
ozgcloud
.
eingang
.
enterprise
.
entry
.
EntryData
.
PostfachAddress
address
)
{
default
PostfachAddress
map
(
de
.
ozgcloud
.
eingang
.
enterprise
.
entry
.
EntryData
.
PostfachAddress
address
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment