Changeset 143


Ignore:
Timestamp:
12/04/07 22:57:19 (5 years ago)
Author:
saua
Message:

catch IllegalArgumentException? for malformed URLs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gps/Gps.java

    r130 r143  
    109109                        streamConnection = (StreamConnection) Connector.open(url); 
    110110                        inputStream = streamConnection.openInputStream(); 
     111                } catch (final IllegalArgumentException ex) { 
     112                        // happens with malformed URLs 
     113                        Log.log(this, ex, "Error opening connection to " + url); 
     114                        throw new LocationException("Error while opening Bluetooth connection: " + ex.getMessage()); 
    111115                } catch (final IOException ex) { 
    112116                        Log.log(this, ex, "Error opening connection to " + url); 
Note: See TracChangeset for help on using the changeset viewer.