Skip to content

Commit

Permalink
fix(kubernetes): Fix NPE in bake manifest details (#7022)
Browse files Browse the repository at this point in the history
If the bake manifest stage doesn't output any artifacts,
the stage fails to render due to an NPE. This is probably
rare as you'd generally want at least one artifact, but still
worth fixing.
  • Loading branch information
ezimanyi committed May 17, 2019
1 parent 411db03 commit 6390c71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class BakeManifestDetailsTab extends React.Component<IExecutionDetailsSec
public static title = 'bakedManifest';

public render() {
const bakedArtifacts: IArtifact[] = this.props.stage.context.artifacts.filter(
const bakedArtifacts: IArtifact[] = (this.props.stage.context.artifacts || []).filter(
(a: IArtifact) => a.type === 'embedded/base64',
);
return (
Expand Down

0 comments on commit 6390c71

Please sign in to comment.