Closed jaibatrik closed 5 years ago
Rate.java
needs null checks around usages of mFeedbackAction
or mFeedbackAction
needs to be initialized with no-op methods.
This is indeed a bug; if no feedback URL is provided, pressing the feedback button will throw a NullPointerException.
A proper solution would be to conceal the feedback dialog if no URL is provided, but for now I'll simply wrap all invocations of mFeedbackAction in null checks.
Disregard my previous remark about the feedback button displaying; that isn't the case. The issue here is only that an uninitialized mFeedbackAction is invoked when the user presses the rate button.
Provenance : Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows 10
De : Paul Lammertsmamailto:notifications@github.com Envoyé le :mardi 23 octobre 2018 23:09 À : Pixplicity/gene-ratemailto:gene-rate@noreply.github.com Cc : Muno Christophemailto:christ2904@outlook.com; Commentmailto:comment@noreply.github.com Objet :Re: [Pixplicity/gene-rate] Exception on clicking rate button (#22)
Disregard my previous remark about the feedback button displaying; that isn't the case. The issue here is only that an uninitialized mFeedbackAction is invoked when the user presses the rate button.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/Pixplicity/gene-rate/issues/22#issuecomment-432420678, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AjGWm4dc0Q6PnAuQGmcnjhJ1BtcVQOEGks5un4WDgaJpZM4XaFj1. Excuse me i have little problem my English it’s not very good , i don’t understand your mail i just speak french I am very disapointed
I have submitted a pull request to resolve this. Hopefully a peer can review this soon and deploy a fix.
I'm getting the below Exception when users try to rate -
Below is the related code -