diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-09-03 15:08:15 -0700 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-09-03 15:08:15 -0700 |
commit | 274066bdd1bdb16886936b27d6815a5d6031fdc8 (patch) | |
tree | eb7ed5554c0075de6195646a13c77ad0968afdb0 /src | |
parent | e3717590c79566daa7e03a5612a0b3b13ddfbc55 (diff) | |
download | dsub-274066bdd1bdb16886936b27d6815a5d6031fdc8.tar.gz dsub-274066bdd1bdb16886936b27d6815a5d6031fdc8.tar.bz2 dsub-274066bdd1bdb16886936b27d6815a5d6031fdc8.zip |
Return false for equalizer if error thrown from equalizer.getEnabled()
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/audiofx/EqualizerController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/audiofx/EqualizerController.java b/src/github/daneren2005/dsub/audiofx/EqualizerController.java index 0dcee863..039394bf 100644 --- a/src/github/daneren2005/dsub/audiofx/EqualizerController.java +++ b/src/github/daneren2005/dsub/audiofx/EqualizerController.java @@ -95,7 +95,11 @@ public class EqualizerController { } public boolean isEnabled() { - return isAvailable() && equalizer.getEnabled(); + try { + return isAvailable() && equalizer.getEnabled(); + } catch(Exception e) { + return false; + } } public void release() { |