commit | 2349ac9cfb96450ecf31a5cc32e9c028f7bcfa36 | [log] [tgz] |
---|---|---|
author | Palash Kala <palash.kala@samsung.com> | Fri Mar 31 11:31:02 2017 +0900 |
committer | Palash Kala <palash.kala@samsung.com> | Fri Mar 31 11:31:02 2017 +0900 |
tree | f4fef4bb9bfcd8cc0fd0bc15af34fe1f52da4770 | |
parent | 88cc3432cf18cf098ff40ac8169fc4d72d32d2d1 [diff] |
Method should return when error occurs, otherwise there will be NullPointerException Change-Id: I6b597ec997ebb2f243f66864c58bab8d812ea0d8
diff --git a/apps/pce/pceweb/src/main/java/org/onosproject/pceweb/PceWebTopovMessageHandler.java b/apps/pce/pceweb/src/main/java/org/onosproject/pceweb/PceWebTopovMessageHandler.java index f5b1419..95c113c 100644 --- a/apps/pce/pceweb/src/main/java/org/onosproject/pceweb/PceWebTopovMessageHandler.java +++ b/apps/pce/pceweb/src/main/java/org/onosproject/pceweb/PceWebTopovMessageHandler.java
@@ -223,6 +223,7 @@ if (lspType == null || lspType.equals(STRING_NULL)) { log.error("PCE setup path is failed as LSP type is mandatory"); + return; } if ((src != null) && (dst != null)) {