Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormegumi.telles2018-02-19 16:27:44 +0000
committermegumi.telles2018-02-19 16:28:06 +0000
commit6d8f81e917dcd3b939b9d33d309405bc8b385164 (patch)
tree175f823d2aedbe99249eedcefb0600f1e816d347
parent3fc7f704a7f213b1c5deab1fc2b4aca90f2be734 (diff)
downloadorg.eclipse.osee-6d8f81e917dcd3b939b9d33d309405bc8b385164.tar.gz
org.eclipse.osee-6d8f81e917dcd3b939b9d33d309405bc8b385164.tar.xz
org.eclipse.osee-6d8f81e917dcd3b939b9d33d309405bc8b385164.zip
bug[ats_TW7408]: Fix 'Find Erroneous Hyperlinks Blam' NPE
-rw-r--r--plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/FindErroneousEmbeddedLinksBlam.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/FindErroneousEmbeddedLinksBlam.java b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/FindErroneousEmbeddedLinksBlam.java
index 3df13c035aa..d8ba4e49771 100644
--- a/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/FindErroneousEmbeddedLinksBlam.java
+++ b/plugins/org.eclipse.osee.define/src/org/eclipse/osee/define/blam/operation/FindErroneousEmbeddedLinksBlam.java
@@ -151,13 +151,13 @@ public class FindErroneousEmbeddedLinksBlam extends AbstractBlam {
} catch (Exception e) {
String subsystem = artifact.getSoleAttributeValueAsString(CoreAttributeTypes.Subsystem, "");
excelWriter.writeRow("Invalid", artifact.getName(), artifact.getArtifactType().getName(), artifact.getGuid(),
- subsystem, linkGuid);
+ subsystem, (linkGuid == null ? "NULL" : linkGuid));
}
}
private void logLinksToSelf(Artifact artifact, String linkGuid, ISheetWriter excelWriter) throws IOException {
String subsystem = artifact.getSoleAttributeValueAsString(CoreAttributeTypes.Subsystem, "");
- if (linkGuid.equals(artifact.getGuid())) {
+ if (linkGuid != null && linkGuid.equals(artifact.getGuid())) {
excelWriter.writeRow("Link to Self", artifact.getName(), artifact.getArtifactType().getName(),
artifact.getGuid(), subsystem, linkGuid);
}

Back to the top