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
17 java.lang.NullPointerException: Attempt to get length of null array
18 at io.palaima.debugdrawer.timber.data.LumberYard.cleanUp(LumberYard.java:140)
I think this code:
public void cleanUp() {
File dir = getLogDir();
if (dir != null) {
File[] files = dir.listFiles();
for (File file : files) {
if (file.getName().endsWith(LOG_FILE_END)) {
file.delete();
}
}
}
}
should be changed to:
public void cleanUp() {
File dir = getLogDir();
if (dir != null) {
File[] files = dir.listFiles();
if (files != null) {
for (File file : files) {
if (file.getName().endsWith(LOG_FILE_END)) {
file.delete();
}
}
}
}
}
I see few such crashes:
I think this code:
should be changed to:
The text was updated successfully, but these errors were encountered: