Ignore:
Timestamp:
2015-12-25T01:27:08+01:00 (9 years ago)
Author:
Don-vip
Message:

see #12229 - catch SecurityException and IllegalArgumentException, that can be thrown by AudioSystem.getLine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java

    r9144 r9146  
    356356                    }
    357357                    command.ok(stateChange);
    358                 } catch (LineUnavailableException | IOException | UnsupportedAudioFileException startPlayingException) {
     358                } catch (LineUnavailableException | IOException | UnsupportedAudioFileException |
     359                        SecurityException | IllegalArgumentException startPlayingException) {
     360                    Main.error(startPlayingException);
    359361                    command.failed(startPlayingException); // sets state
    360362                }
Note: See TracChangeset for help on using the changeset viewer.