aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/clamp/loop/LoopController.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/onap/clamp/loop/LoopController.java b/src/main/java/org/onap/clamp/loop/LoopController.java
index b862780d..7d41e489 100644
--- a/src/main/java/org/onap/clamp/loop/LoopController.java
+++ b/src/main/java/org/onap/clamp/loop/LoopController.java
@@ -116,12 +116,13 @@ public class LoopController {
/**
* Get the SVG representation of the loop
- *
+ *
* @param loopName
* The loop name
* @return The SVG representation
*/
public String getSVGRepresentation(String loopName) {
- return loopService.getLoop(loopName).getSvgRepresentation();
+ Loop loop = loopService.getLoop(loopName);
+ return loop != null ? loop.getSvgRepresentation() : null;
}
}