Skip to content

Commit

Permalink
fix npe when exporting hints (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: Hui Wang <[email protected]>
  • Loading branch information
HuiWang1020 and Hui Wang authored Jul 28, 2023
1 parent 503ba7c commit d86c627
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public class SubscriptionEnvironment extends Resource.SimpleEnvironment {

public SubscriptionEnvironment(String namespace, String name, Pipeline pipeline,
Map<String, String> hints) {
exportAll(hints);
if (hints != null) {
exportAll(hints);
}
export("pipeline.namespace", namespace);
export("pipeline.name", name);
export("pipeline.avroSchema", AvroConverter.avro("com.linkedin.hoptimator", "OutputRecord",
Expand Down

0 comments on commit d86c627

Please sign in to comment.