Skip to content

Commit

Permalink
fix: Null pointer when config.sacn is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
schw4rzlicht committed Jun 13, 2020
1 parent 48eafa0 commit 08b69f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/permissions/SACNPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class SACNPermission implements PermissionInstance {
reuseAddr: true
};

if(_.isString(config.sacn.interface)) {
if(config.sacn && _.isString(config.sacn.interface)) {
_.set(receiverOptions, "iface", config.sacn.interface);
}

Expand Down

0 comments on commit 08b69f2

Please sign in to comment.