Consume exception if native library could not be loaded.
This commit is contained in:
parent
cea059fa86
commit
de58580d49
1 changed files with 5 additions and 1 deletions
|
@ -302,7 +302,11 @@ public class OsmandApplication extends Application {
|
|||
public void run() {
|
||||
List<String> warnings = null;
|
||||
try {
|
||||
NativeOsmandLibrary.preloadLibrary();
|
||||
try {
|
||||
NativeOsmandLibrary.preloadLibrary();
|
||||
} catch (ExceptionInInitializerError e) {
|
||||
LOG.info("Native library could not loaded!");
|
||||
}
|
||||
warnings = manager.reloadIndexes(startDialog);
|
||||
player = null;
|
||||
SavingTrackHelper helper = new SavingTrackHelper(OsmandApplication.this);
|
||||
|
|
Loading…
Reference in a new issue