diff --git a/README.md b/README.md index 1a602178..ea4199b1 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Logger provides : ### Gradle ```groovy -compile 'com.orhanobut:logger:1.6' +compile 'com.orhanobut:logger:1.7' ``` ### Current Log system diff --git a/gradle.properties b/gradle.properties index fcaf2f7c..ff4c632a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,8 +18,8 @@ # org.gradle.parallel=true #VERSION_NAME=1.0-SNAPSHOT -VERSION_NAME=1.6 -VERSION_CODE=7 +VERSION_NAME=1.7 +VERSION_CODE=8 GROUP=com.orhanobut POM_DESCRIPTION=Simple,pretty and powerful log diff --git a/logger/src/main/java/com/orhanobut/logger/LoggerPrinter.java b/logger/src/main/java/com/orhanobut/logger/LoggerPrinter.java index ac9cb2a7..f96260e6 100644 --- a/logger/src/main/java/com/orhanobut/logger/LoggerPrinter.java +++ b/logger/src/main/java/com/orhanobut/logger/LoggerPrinter.java @@ -258,6 +258,9 @@ private void logHeaderContent(int logType, String tag, int methodCount) { for (int i = methodCount; i > 0; i--) { int stackIndex = i + stackOffset; + if (stackIndex >= trace.length) { + continue; + } StringBuilder builder = new StringBuilder(); builder.append("║ ") .append(level)