We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f895344 commit 1a14d8dCopy full SHA for 1a14d8d
kubernetes/src/main/java/io/kubernetes/client/custom/Quantity.java
@@ -84,7 +84,7 @@ public boolean equals(Object o) {
84
public class QuantityAdapter extends TypeAdapter<Quantity> {
85
@Override
86
public void write(JsonWriter jsonWriter, Quantity quantity) throws IOException {
87
- jsonWriter.value(quantity.toSuffixedString());
+ jsonWriter.value(quantity != null ? quantity.toSuffixedString() : null);
88
}
89
90
0 commit comments