Fix crash

This commit is contained in:
Victor Shcherb 2014-07-14 19:56:03 +02:00
parent 54556eba6a
commit 706a5b2197

View file

@ -359,12 +359,15 @@ public class OpenstreetmapRemoteUtil implements OpenstreetmapUtil {
return null;
}
} catch (IOException e) {
} catch (Exception e) {
log.error("Loading node failed " + nodeId, e); //$NON-NLS-1$
AccessibleToast.makeText(ctx, ctx.getResources().getString(R.string.error_io_error), Toast.LENGTH_LONG).show();
} catch (SAXException e) {
log.error("Loading node failed " + nodeId, e); //$NON-NLS-1$
AccessibleToast.makeText(ctx, ctx.getResources().getString(R.string.error_io_error), Toast.LENGTH_LONG).show();
ctx.runInUIThread(new Runnable() {
@Override
public void run() {
AccessibleToast.makeText(ctx, ctx.getResources().getString(R.string.error_io_error), Toast.LENGTH_LONG).show();
}
});
}
return null;
}