Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/5114#discussion_r154723123
--- Diff: flink-mesos/src/main/java/org/apache/flink/mesos/Utils.java ---
@@ -101,4 +106,59 @@
.setRole(role)
.build();
}
+
+ /**
+ * Gets a stream of values from a collection of range resources.
+ */
+ public static LongStream rangeValues(Collection<Protos.Resource>
resources) {
+ return resources.stream()
--- End diff --
Maybe we could add a null check for `resources`.
---