Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Sho SHIMIZU
2016-02-24 13:55:12 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
12d026864deb514455cfaa501e0e0f4caa6e8a03
12d02686
1 parent
8d964f1b
Prevent NullPointerException
Change-Id: Id27490dfcae211bb7889090c6a53a400c3a06dbe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
View file @
12d0268
...
...
@@ -15,6 +15,7 @@
*/
package
org
.
onosproject
.
net
.
intent
.
impl
.
compiler
;
import
com.google.common.base.Strings
;
import
org.apache.commons.lang3.tuple.Pair
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
...
...
@@ -133,8 +134,8 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu
//TODO for reduction check if the new capacity is smaller than the size of the current mapping
String
propertyString
=
Tools
.
get
(
properties
,
"maxCapacity"
);
//Ignore if propertyString is empty
if
(!
propertyString
.
isEmpty
(
))
{
//Ignore if propertyString is empty
or null
if
(!
Strings
.
isNullOrEmpty
(
propertyString
))
{
try
{
int
temp
=
Integer
.
parseInt
(
propertyString
);
//Ensure value is non-negative but allow zero as a way to shutdown the link
...
...
Please
register
or
login
to post a comment