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
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
at eu.davidea.flexibleadapter.utils.Log.getTag(Unknown Source)
at eu.davidea.flexibleadapter.utils.Log.i(Unknown Source)
at eu.davidea.flexibleadapter.FlexibleAdapter.addListener(Unknown Source)
at co.mangotechnologies.clickup.adapters.a.addListener(Unknown Source)
at eu.davidea.flexibleadapter.FlexibleAdapter.(Unknown Source)
The text was updated successfully, but these errors were encountered:
davideas
changed the title
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[]
Internal Log causes java.lang.NullPointerException when compiled with ProGuard
Jun 16, 2017
Could you please add the following lines in the pro-guard file as the pro-guard manual states?
We're keeping all source file attributes, but we're replacing their values by the string "SourceFile". We could use any string. This string is already present in all class files, so it doesn't take up any extra space.
We're also keeping the line number tables of all methods.
Whenever both of these attributes are present, the Java run-time environment will include line number information when printing out exception stack traces.
However, the default internal log has a SUPPRESS feature, but I forgot to set it as default value for the level, you can also do the following, it should fix as well the problem with pro-guard, because the log will never be executed;
if (BuildConfig.DEBUG) {
FlexibleAdapter.enableLogs(Level.DEBUG);
} else {
FlexibleAdapter.enableLogs(Level.SUPPRESS);
}
Running version 5.0.0-rc2 built on 2017.06.10
with PRO GUARD
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
at eu.davidea.flexibleadapter.utils.Log.getTag(Unknown Source)
at eu.davidea.flexibleadapter.utils.Log.i(Unknown Source)
at eu.davidea.flexibleadapter.FlexibleAdapter.addListener(Unknown Source)
at co.mangotechnologies.clickup.adapters.a.addListener(Unknown Source)
at eu.davidea.flexibleadapter.FlexibleAdapter.(Unknown Source)
The text was updated successfully, but these errors were encountered: