Skip to content

Commit

Permalink
AudioUnitEffectProcessor: Add missing nil check for cocoaViewInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Nov 15, 2024
1 parent 3fbb72b commit c65d13c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/effects/backends/audiounit/audiouniteffectprocessor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@
return nil;
}

if (cocoaViewInfo == nil) {
outError = "Could not fetch Cocoa view info for Audio Unit " + name;
return nil;
}

NSURL* viewBundleLocation =
(__bridge NSURL*)cocoaViewInfo->mCocoaAUViewBundleLocation;
if (viewBundleLocation == nil) {
Expand Down

0 comments on commit c65d13c

Please sign in to comment.