diff --git a/src/main/java/org/jdamico/javax25/App.java b/src/main/java/org/jdamico/javax25/App.java index 8e52923..c3c2f96 100644 --- a/src/main/java/org/jdamico/javax25/App.java +++ b/src/main/java/org/jdamico/javax25/App.java @@ -14,9 +14,9 @@ */ public class App { - public static void main( String[] args ) - { - Soundcard.enumerate(); + public static void main( String[] args ) + { + Soundcard.enumerate(); Properties p = System.getProperties(); @@ -32,7 +32,7 @@ public static void main( String[] args ) } catch (Exception e) { System.out.println("Exception trying to create an Afsk1200 object: "+e.getMessage()); } - + /*** preparing to generate or capture audio packets ***/ @@ -57,10 +57,12 @@ public static void main( String[] args ) /*** listen for incoming packets ***/ if (input != null) { - System.out.printf("Listening for packets\n"); - //sc.openSoundInput(input); - sc.receive(); + System.out.printf("Listening for packets\n"); + //sc.openSoundInput(input); + sc.receive(); + }else { + System.err.println("Input is null!"); } - - } + + } }