java - runtime error inputstream cannot be null -


i have runtime error in logcat:

05-11 06:24:23.672: error/androidruntime(327): java.lang.runtimeexception:      unable create application net.osmand.activities.osmandapplication:     java.lang.illegalargumentexception: inputstream cannot null 

...

after debugin found exception comme how??? in methode :

private baseosmandrender loadrenderer(string name, set<string> loadedrenderers) throws ioexception, saxexception {         inputstream = null;         if(externalrenderers.containskey(name)){             = new fileinputstream(externalrenderers.get(name));         } else if(internalrenderers.containskey(name)){             = osmandrenderingrulesparser.class.getresourceasstream(internalrenderers.get(name));         } else {             throw new illegalargumentexception("not found " + name); //$non-nls-1$         }         baseosmandrender b = new baseosmandrender();         b.init(is);         loadedrenderers.add(name);         list<baseosmandrender> dependencies = new arraylist<baseosmandrender>();         (string s : b.getdepends()) {             if (loadedrenderers.contains(s)) { 

the "is" varible null

any please

if remember correctly, getresourceasstream returns null if cannot find resource. suspect that's cause of problem.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -