Skip to content

Commit

Permalink
[core] Prevent crash on missing partition id
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Aug 11, 2023
1 parent 0dddd64 commit 30dcc9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/integration/odc/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (p *Plugin) queryPartitionStatus() {
wg.Wait()

for _, odcPartSt := range odcPartInfoSlice {
if odcPartSt.PartitionId.IsNil() {
if odcPartSt == nil || odcPartSt.PartitionId.IsNil() {
// The partition wasn't found in the ODC response
continue
}
Expand Down

0 comments on commit 30dcc9e

Please sign in to comment.