You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android, TwitterTextParser.parseText(String) crashes with NPE if proguard is used.
Expected behavior
Should return valid TwitterTextParseResults as usual.
Actual behavior
Crashes with NPE. TwitterTextParser.parseText(String, TwitterTextConfiguration) also crashes.
Below is the crashlog
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
at com.twitter.a.h.a(TwitterTextParser.java:173)
at com.twitter.a.h.a(TwitterTextParser.java:78)
at net.yslibrary.omnitweety.status.a.c.f(BuildStatusString.kt:35)
at net.yslibrary.omnitweety.status.a.c.a(BuildStatusString.kt:11)
at net.yslibrary.omnitweety.status.a.c$a.agp(BuildStatusString.kt:16)
at net.yslibrary.omnitweety.status.a.c$a.call(BuildStatusString.kt:11)
Here's the code in above crashlog.
privatefungetLengthDiff(status:String): Int {
val result =TwitterTextParser.parseTweet(status)
returnTwitterTextParser.TWITTER_TEXT_WEIGHTED_CHAR_COUNT_CONFIG.maxWeightedTweetLength - result.weightedLength
}
Steps to reproduce the behavior
Create android app
Enable proguard(also add proguard config for Jackson)
Assigned to me and I'll add Android specific portions to the README and we're evaluating options related to configuration in general for some other issues filed.
I've got a patch internally that packages the necessary proguard rules within the JAR itself. I will update the README. Still working towards a push to GitHub, stay tuned.
On Android,
TwitterTextParser.parseText(String)
crashes with NPE if proguard is used.Expected behavior
Should return valid
TwitterTextParseResults
as usual.Actual behavior
Crashes with NPE.
TwitterTextParser.parseText(String, TwitterTextConfiguration)
also crashes.Below is the crashlog
Here's the code in above crashlog.
Steps to reproduce the behavior
TwitterTextParser.parseTweet(String)
somewhereThe text was updated successfully, but these errors were encountered: