Skip to content

Commit

Permalink
Merge branch 'hotfix/ilp-cnstrs-null'
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Jul 1, 2022
2 parents 3aff05c + 1e78c03 commit b36a8f9
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ private int addIlpIntegerConstraintsToGrb(final Collection<ILPConstraint> constr
final Iterator<ILPConstraint> cnstrsIt = constraints.iterator();
while (cnstrsIt.hasNext()) {
final ILPConstraint curr = cnstrsIt.next();

if (curr == null) {
continue;
}

final GRBLinExpr grbLinExpr = new GRBLinExpr();

// Check if constraints of form "<empty> == const" exist and throw an exception
Expand Down Expand Up @@ -298,6 +303,11 @@ private int addIlpConstraintsToGrb(final Collection<ILPConstraint> constraints,
final Iterator<ILPConstraint> cnstrsIt = constraints.iterator();
while (cnstrsIt.hasNext()) {
final ILPConstraint curr = cnstrsIt.next();

if (curr == null) {
continue;
}

final GRBLinExpr grbLinExpr = new GRBLinExpr();

// Check if constraints of form "<empty> == const" exist and throw an exception
Expand Down

0 comments on commit b36a8f9

Please sign in to comment.