File tree 2 files changed +5
-3
lines changed
intg/src/main/java/org/apache/atlas/model/instance
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ public AtlasClassification(Map map) {
81
81
}
82
82
83
83
public AtlasClassification (AtlasClassification other ) {
84
+ super (other );
85
+
84
86
if (other != null ) {
85
- setTypeName (other .getTypeName ());
86
- setAttributes (other .getAttributes ());
87
87
setEntityGuid (other .getEntityGuid ());
88
88
setEntityStatus (other .getEntityStatus ());
89
89
setPropagate (other .isPropagate ());
Original file line number Diff line number Diff line change @@ -102,7 +102,9 @@ public AtlasStruct(Map map) {
102
102
public AtlasStruct (AtlasStruct other ) {
103
103
if (other != null ) {
104
104
setTypeName (other .getTypeName ());
105
- setAttributes (new HashMap <>(other .getAttributes ()));
105
+ if (other .getAttributes () != null ) {
106
+ setAttributes (new HashMap <>(other .getAttributes ()));
107
+ }
106
108
}
107
109
}
108
110
You can’t perform that action at this time.
0 commit comments