[PdfViewer][v2.8]The app crashes if i click print.

in #utopian-io5 years ago

Related Information

  • Repository:https://github.com/JavaCafe01/PdfViewer
  • Submitted issue:here
  • Github account:here

    Actual Behaviour


    App crashes if i click print.

    Expected behavior


    Expected that i can click print the the file and save as pdf.

    step to reproduce

  1. Install and open the app
  2. click "+" icon then click pic file and choose any pdf file from your storage.
  3. After loaded the pdf again click "+"icon and click print
  4. See the error

Information

  • App version:v2.8
  • OS:Android 9.0
  • Device:Samsung A10

Recording Of The Bug

LogCat


06-03 06:54:27.905  7209  7209 E AndroidRuntime: FATAL EXCEPTION: main
06-03 06:54:27.905  7209  7209 E AndroidRuntime: Process: com.gsnathan.pdfviewer, PID: 7209
06-03 06:54:27.905  7209  7209 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at com.jaredrummler.cyanea.b.e.m(Unknown Source:83)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at com.jaredrummler.cyanea.b.e.b(Unknown Source:8)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at com.jaredrummler.cyanea.a.d.onStart(Unknown Source:7)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1395)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.Activity.performStart(Activity.java:7348)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3139)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1955)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:106)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:214)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7073)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
06-03 06:54:27.905  7209  7209 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)

Sort:  

Hi @masudrana, thanks for making this report

The crash log was really helpful. Although the project maintainer thinks it has the same cause as the issue opened by you here - https://github.com/JavaCafe01/PdfViewer/issues/24. I believe fixing the previous issue fixed this as well.

This will be scored as negligible. I look forward to your next contribution.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Don't know why you evulated this contribution as Negligible? Can i get the answer pls😓😓

It has the same root cause as the issue opened by you here - https://github.com/JavaCafe01/PdfViewer/issues/24, so it is negligible because it does not require a separate fix. I mean it would have been fixed regardless of you opening this issue or not

https://github.com/JavaCafe01/PdfViewer/issues/25
This issue has been fixed but #24 issue is still not solved yet in the latest version.
Don't know whats the fact but waiting for po answer.

Thank you for your review, @fego! Keep up the good work!

Hi @masudrana!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @masudrana!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Congratulations @masudrana! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You distributed more than 6000 upvotes. Your next target is to reach 7000 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.31
TRX 0.12
JST 0.033
BTC 64485.37
ETH 3156.53
USDT 1.00
SBD 4.05