[comixed-dev] Re: Bug with image-cache

  • From: "Darryl L. Pierce" <mcpierce@xxxxxxxxx>
  • To: comixed-dev@xxxxxxxxxxxxx
  • Date: Tue, 28 Jul 2020 16:46:36 -0400

Hrm, I just ran things locally and am seeing this:

java.lang.NullPointerException: null
at
org.comixedproject.controller.comic.ComicController.getCoverImage(ComicController.java:353)
~[comixed-rest-api-0.7.0-0.jar:0.7.0-0]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) ~[na:na]
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[na:na]
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:567) ~[na:na]

I think the issue is what, on line 348-352 of ComicController, it's still
trying to get the image content using the Page class rather than using a
ComicFileHandler issue.

I'll put up a PR for this shortly.

On Tue, Jul 28, 2020 at 4:14 PM Frédéric Fouret <fouretfrederic@xxxxxxxxx>
wrote:

It recreates the 0 length file. To check this, i have deleted my .comixed
folder. All the file have 0 octet.

Le mar. 28 juil. 2020 à 22:10, Darryl L. Pierce <mcpierce@xxxxxxxxx> a
écrit :

If you delete the 0 byte file and then view the comic does that fix the
issue? Or does it recreate the 0-length file?

On Tue, Jul 28, 2020 at 4:03 PM Frédéric Fouret <fouretfrederic@xxxxxxxxx>
wrote:

(In develop branch)
When I import new comics and go to the library/comics there is no covert
image. After checking in the image-cache folder, I found a file with 0
octet.

It Look like there is a problem in getCoverImage or something near...
seems we want to get content of the page but content is never set or
saved...



--
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." -
Gord Downie



-- 
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." - Gord
Downie

Other related posts: