Add the condition check to avoid NULL pointer.
diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..edeb7ea
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,7 @@
+Ver 1.1.5 (Uploaded to Android Market)
+ - Add SunSpider JavaScript benchmark
+ - Allow customized result output path
+ - Support dashboard bundle format used in Linaro Automated Validation Architecture
+ - Enable detailed report of libmicro and UnixBench
+ - Android 2.3+ build fixes
+ - Package name changed from org.zeroxlab.benchmark to org.zeroxlab.zeroxbenchmark
diff --git a/src/org/zeroxlab/benchmark/Benchmark.java b/src/org/zeroxlab/benchmark/Benchmark.java
index 33589fb..d413bdf 100644
--- a/src/org/zeroxlab/benchmark/Benchmark.java
+++ b/src/org/zeroxlab/benchmark/Benchmark.java
@@ -729,9 +729,19 @@
mycase = mCases.get(i);
if ( !mycase.couldFetchReport() ) continue;
result += "============================================================\n";
- result += mycase.getTitle() + "\n";
+ if( mycase.getTitle() != null){
+ result += mycase.getTitle() + "\n";
+ }
+ else{
+ result += "\n";
+ }
result += "------------------------------------------------------------\n";
- result += mycase.getResultOutput().trim() + "\n";
+ if( mycase.getResultOutput() != null ){
+ result += mycase.getResultOutput().trim() + "\n";
+ }
+ else{
+ result += "\n";
+ }
}
result += "============================================================\n";