Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
6a1c4f4d
Commit
6a1c4f4d
authored
7 years ago
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2251: fixed NPE in V1 to V2 entity conversion
parent
41e5404f
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
AtlasEntityFormatConverter.java
...las/repository/converters/AtlasEntityFormatConverter.java
+8
-4
No files found.
repository/src/main/java/org/apache/atlas/repository/converters/AtlasEntityFormatConverter.java
View file @
6a1c4f4d
...
@@ -66,10 +66,14 @@ public class AtlasEntityFormatConverter extends AtlasStructFormatConverter {
...
@@ -66,10 +66,14 @@ public class AtlasEntityFormatConverter extends AtlasStructFormatConverter {
entity
.
setGuid
(
entRef
.
getId
().
getId
());
entity
.
setGuid
(
entRef
.
getId
().
getId
());
entity
.
setStatus
(
convertState
(
entRef
.
getId
().
getState
()));
entity
.
setStatus
(
convertState
(
entRef
.
getId
().
getState
()));
entity
.
setCreatedBy
(
entRef
.
getSystemAttributes
().
getCreatedBy
());
entity
.
setCreateTime
(
entRef
.
getSystemAttributes
().
getCreatedTime
());
if
(
entRef
.
getSystemAttributes
()
!=
null
)
{
entity
.
setUpdatedBy
(
entRef
.
getSystemAttributes
().
getModifiedBy
());
entity
.
setCreatedBy
(
entRef
.
getSystemAttributes
().
getCreatedBy
());
entity
.
setUpdateTime
(
entRef
.
getSystemAttributes
().
getModifiedTime
());
entity
.
setCreateTime
(
entRef
.
getSystemAttributes
().
getCreatedTime
());
entity
.
setUpdatedBy
(
entRef
.
getSystemAttributes
().
getModifiedBy
());
entity
.
setUpdateTime
(
entRef
.
getSystemAttributes
().
getModifiedTime
());
}
entity
.
setVersion
((
long
)
entRef
.
getId
().
getVersion
());
entity
.
setVersion
((
long
)
entRef
.
getId
().
getVersion
());
if
(
CollectionUtils
.
isNotEmpty
(
entRef
.
getTraitNames
()))
{
if
(
CollectionUtils
.
isNotEmpty
(
entRef
.
getTraitNames
()))
{
...
...
This diff is collapsed.
Click to expand it.
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