Does anyone knows how to fix this error? ( Tachiyomi )
Desu.me NullPointerException
Manhuatop not opening null pointer exception null
Null pointer exception when refreshing
screenshot of the error
Edit: it's solved thanks =)
Since yesterday, when I try to access bato.to updates from Tachiyomi I get an error reading "Attempt to invoke virtual method 'java.lang.String org.jsoup.nodes.Element.attr(java.lang.String)' on a null object reference"
Has anyone else been getting this error, and is there a fix? I've tried other sources and they seem to work.
Have you added this line in your manifest
<uses-permission android:name="android.permission.INTERNET" />
And write that outside your </application> tag
public String getXmlElement(String url) {
String xml=null;
try{
DefaultHttpClient client=new DefaultHttpClient();
Log.d("cli", "ok");
HttpPost post= new HttpPost(url);
Log.d("post", "ok"+post);
HttpResponse responce=client.execute(post);
Log.d("responce", "ok");
HttpEntity entity=responce.getEntity();
Log.d("entity", "ok");
xml=EntityUtils.toString(entity);
}catch(UnsupportedEncodingException e){
e.printStackTrace();
}catch (IOException e) {
// TODO: handle exception
e.printStackTrace();
}
catch(NullPointerException e){
Toast.makeText(getApplicationContext(), "Connection to server failed.. Please try later..", Toast.LENGTH_LONG).show();
}
return xml;
}
You can use the catch as shown above to show the user that he may not be connected to internet. The null pointer exception may occur at any line so it's not that accurate.
Or you can put if else condition with the response as:
if(responce!=null){
HttpEntity entity=responce.getEntity();
}
else{
Toast.makeText(getApplicationContext(), "Connection to server failed.. Please try later..", Toast.LENGTH_LONG).show();
}
Not mentioning the internet permission.
-
in tachiyomi app. delete all extensions. more-> setting ->browse ->extension repos-> add
-
paste the following link : https://raw.githubusercontent.com/keiyoushi/extensions/repo/index.min.json
-
in migrate section check for missing extensions
-
in extensions , check for the extension your missing and tap install
-
after installing , tap trust on the recently added extensions
-
now all the mangas will work normally
-
ENJOY!! :)
Maybe I'm out of the loop but ReadComicOnline has been acting strange, recently for me this pop-up when I try to read a chapter. Is there a workaround or a fix for this or am I at the mercy of waiting for an update? I have version 1.4.22 installed.