aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-09-03 15:08:15 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-09-03 15:08:15 -0700
commit274066bdd1bdb16886936b27d6815a5d6031fdc8 (patch)
treeeb7ed5554c0075de6195646a13c77ad0968afdb0
parente3717590c79566daa7e03a5612a0b3b13ddfbc55 (diff)
downloaddsub-274066bdd1bdb16886936b27d6815a5d6031fdc8.tar.gz
dsub-274066bdd1bdb16886936b27d6815a5d6031fdc8.tar.bz2
dsub-274066bdd1bdb16886936b27d6815a5d6031fdc8.zip
Return false for equalizer if error thrown from equalizer.getEnabled()
-rw-r--r--src/github/daneren2005/dsub/audiofx/EqualizerController.java6
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() {