Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Co-authored-by: Ahmed Triki <ahmed.triki.tn@gmail.com>
Change-Id: I418faab4b76899313c9d1ca86db4240704aaabd5
ExplicitRouteObjects explicitRouteObjects = new ExplicitRouteObjectsBuilder()
.setRouteObjectIncludeExclude(routeObjectIncludeExcludes).build();
//Create Path Constraint
ExplicitRouteObjects explicitRouteObjects = new ExplicitRouteObjectsBuilder()
.setRouteObjectIncludeExclude(routeObjectIncludeExcludes).build();
//Create Path Constraint
- PathConstraints pathConstraints =
- createPathConstraints(atoz.getRate().toJava(),atoz.getAToZWavelengthNumber().toJava());
+ Long atozWavelength = null;
+ if (atoz.getAToZWavelengthNumber() != null) {
+ atozWavelength = atoz.getAToZWavelengthNumber().toJava();
+ }
+ PathConstraints pathConstraints = createPathConstraints(atoz.getRate().toJava(), atozWavelength);
// Create the path request
List<PathRequest> pathRequestList = new ArrayList<>();
// Create the path request
List<PathRequest> pathRequestList = new ArrayList<>();
ExplicitRouteObjects explicitRouteObjects = new ExplicitRouteObjectsBuilder()
.setRouteObjectIncludeExclude(routeObjectIncludeExcludes).build();
//Create Path Constraint
ExplicitRouteObjects explicitRouteObjects = new ExplicitRouteObjectsBuilder()
.setRouteObjectIncludeExclude(routeObjectIncludeExcludes).build();
//Create Path Constraint
- PathConstraints pathConstraints = createPathConstraints(ztoa.getRate().toJava(),
- ztoa.getZToAWavelengthNumber().toJava());
+ Long ztoaWavelength = null;
+ if (ztoa.getZToAWavelengthNumber() != null) {
+ ztoaWavelength = ztoa.getZToAWavelengthNumber().toJava();
+ }
+ PathConstraints pathConstraints = createPathConstraints(ztoa.getRate().toJava(), ztoaWavelength);
// Create the path request
List<PathRequest> pathRequestList = new ArrayList<>();
// Create the path request
List<PathRequest> pathRequestList = new ArrayList<>();