Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]doubt ? NumberFormatException Find a bug #11

Open
zhwm12 opened this issue Apr 25, 2021 · 1 comment
Open

[BUG]doubt ? NumberFormatException Find a bug #11

zhwm12 opened this issue Apr 25, 2021 · 1 comment

Comments

@zhwm12
Copy link

zhwm12 commented Apr 25, 2021

file: src\main\java\com\xc\luckysheet\entity\GridRecordDataModel.java {
......
/**
* sheet序号
*/
String index;
......
}

file: src\main\java\com\xc\luckysheet\db\server\JfGridUpdateService.java
private String Operation_sha(String gridKey, JSONObject bson) {
......
Integer _sheetPosition = JfGridFileUtil.getSheetPositionByIndex(_dbObject, index);
......
}

file: luckysheet-db\src\main\java\com\xc\luckysheet\util\JfGridFileUtil.java
public static Integer getSheetPositionByIndex(List _list,String index){
......
Integer _index=Integer.parseInt(_o.get("index").toString());
_o.get("index").toString() : "Sheet_0ekpfWe00zbx_1619100520312"
java.lang.NumberFormatException
......
}

Integer.parseInt() java.lang.NumberFormatException
What went wrong?

@iamxuchen800117
Copy link
Contributor

First of all, thank you for your suggestion. The bug has been fixed。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants