turcsanyip commented on a change in pull request #3929: NIFI-6937 - Fix 
ReportLineageToAtlas duplicate key exception
URL: https://github.com/apache/nifi/pull/3929#discussion_r357908856
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-atlas-bundle/nifi-atlas-reporting-task/src/main/java/org/apache/nifi/atlas/hook/NotificationSender.java
 ##########
 @@ -350,10 +351,10 @@ void send(final 
List<HookNotification.HookNotificationMessage> messages, final C
                 }
             });
 
-            if (refQualifiedName == null) {
+            if (typedQualifiedName == null) {
                 return null;
             }
-            return new Tuple<>(refQualifiedName, 
typedQualifiedNameToRef.get(toTypedQualifiedName(typeName, refQualifiedName)));
+            return new Tuple<>(typedQualifiedName, 
typedQualifiedNameToRef.get(toTypedQualifiedName(typeName, 
typedQualifiedName)));
 
 Review comment:
   Calling `toTypeQualifiedName()` not needed here, `typeQualifiedName` 
variable already contains the type + qualified name.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to