Skip to content

Commit a0029e3

Browse files
committed
Fix a small issue
1 parent f1d6571 commit a0029e3

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README-EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ From v1.0.5, **not support xlsx** format any more, because poi ooxml lib and oth
1414
## How to use
1515
#### 1. Add Gradle dependencies
1616
``` Gradle
17-
compile 'com.liyu.tools:sqlitetoexcel:1.0.6'
17+
compile 'com.liyu.tools:sqlitetoexcel:1.0.7'
1818
```
1919

2020
#### 2. SQLite -> Excel Sample code(Specific examples can be found in [demo](https://github.com/li-yu/SQLiteToExcel/blob/master/app/src/main/java/com/liyu/demo/MainActivity.java))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SQLiteToExcel 库整合了 [Apache POI](http://poi.apache.org/) 和一些基本
1414
## 如何使用
1515
#### 1. 添加 Gradle 依赖
1616
``` Gradle
17-
compile 'com.liyu.tools:sqlitetoexcel:1.0.6'
17+
compile 'com.liyu.tools:sqlitetoexcel:1.0.7'
1818
```
1919

2020
#### 2. SQLite -> Excel 示例代码(具体示例可参考 [demo](https://github.com/li-yu/SQLiteToExcel/blob/master/app/src/main/java/com/liyu/demo/MainActivity.java) 工程)

sqlitetoexcel/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
minSdkVersion 15
1111
targetSdkVersion 25
1212
versionCode 7
13-
versionName "1.0.6"
13+
versionName "1.0.7"
1414
}
1515
buildTypes {
1616
release {
@@ -29,7 +29,7 @@ dependencies {
2929
def siteUrl = 'https://github.com/li-yu/SQLiteToExcel'
3030
def gitUrl = 'https://github.com/li-yu/SQLiteToExcel.git'
3131

32-
version = "1.0.6"
32+
version = "1.0.7"
3333
group = "com.liyu.tools"
3434

3535
Properties properties = new Properties()
@@ -46,9 +46,9 @@ bintray {
4646
licenses = ["Apache-2.0"]
4747
publish = true
4848
version {
49-
name = '1.0.6'
49+
name = '1.0.7'
5050
released = new Date()
51-
vcsTag = 'v1.0.6'
51+
vcsTag = 'v1.0.7'
5252
attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
5353
desc = 'A simple lib for Android to export SQLite to Excel.'
5454
}

sqlitetoexcel/src/main/java/com/liyu/sqlitetoexcel/SQLiteToExcel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private void fillSheet(String table, Sheet sheet) {
243243
patriarch.createPicture(anchor, workbook.addPicture(cursor.getBlob(j), HSSFWorkbook.PICTURE_TYPE_JPEG));
244244
} else {
245245
String value = cursor.getString(j);
246-
if (value.length() >= 32767) {
246+
if (!TextUtils.isEmpty(value) && value.length() >= 32767) {
247247
value = value.substring(0, 32766);
248248
}
249249
cellA.setCellValue(new HSSFRichTextString(value));

0 commit comments

Comments
 (0)