Skip to content

Commit 6a2d399

Browse files
committed
cio: FIFOSet.Close() check if FIFOSet is nill to prevent NPE
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 19ee068 commit 6a2d399

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cio/io.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type FIFOSet struct {
8080

8181
// Close the FIFOSet
8282
func (f *FIFOSet) Close() error {
83-
if f.close != nil {
83+
if f != nil && f.close != nil {
8484
return f.close()
8585
}
8686
return nil

0 commit comments

Comments
 (0)