Error "cannot invoke "String.length()" because "<local12>"is null."

Post here questions and problems related to editing and publishing DITA content.
sure4369
Posts: 6
Joined: Tue Dec 13, 2022 2:25 pm

Error "cannot invoke "String.length()" because "<local12>"is null."

Post by sure4369 »

Hi,

We are getting the below error while running transformation in DITA Map PDF - based on HTML5 & CSS scenario.

"cannot invoke "String.length()" because "<local12>" is null."

Also attached snapshot for reference.
MicrosoftTeams-image.png
MicrosoftTeams-image.png (17.92 KiB) Viewed 532 times

Please provide a possible solution for this.
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: Error "cannot invoke "String.length()" because "<local12>"is null."

Post by julien_lacour »

Hello,

Is it possible for you to send us the console output of the transformation? It is in the tab named after the transformation:
image.png
image.png (12.44 KiB) Viewed 518 times
You can send it directly to support@oxygenxml.com for analysis.

Regards,
Julien
sure4369
Posts: 6
Joined: Tue Dec 13, 2022 2:25 pm

Re: Error "cannot invoke "String.length()" because "<local12>"is null."

Post by sure4369 »

Hi Julien,
The specified error comes in a split of second right after applying the transformation. So, the "transformation name" tab itself is not there (See attached snapshot). Somehow it was coming before as we shared in the previous attachment. But not coming today as we tried again.
MicrosoftTeams-image (1).png
MicrosoftTeams-image (1).png (9.82 KiB) Viewed 512 times
.

Do you feel that we should re-install Oxygen again? Maybe that will work.
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: Error "cannot invoke "String.length()" because "<local12>"is null."

Post by julien_lacour »

Hi,

Could you try to start Oxygen using the oxygen.bat script and launch the transformation again, then copy the stacktrace here?
Or you can try to send us the debugging log of Oxygen in the online form.

Regards,
Julien
Post Reply