diff --git a/src/Sets/HPolyhedron/ishyperplanar.jl b/src/Sets/HPolyhedron/ishyperplanar.jl index 4a0d4ffe0c..4669a82341 100644 --- a/src/Sets/HPolyhedron/ishyperplanar.jl +++ b/src/Sets/HPolyhedron/ishyperplanar.jl @@ -6,6 +6,10 @@ function ishyperplanar(P::HPolyhedron) if m > 2 # try to remove redundant constraints clist = remove_redundant_constraints(clist) + if isnothing(clist) + # constraints are contradictory + return false + end m = length(clist) end if m != 2