{"action":"opened","issue":{"url":"https://api.github.com/repos/youseries/ureport/issues/331","repository_url":"https://api.github.com/repos/youseries/ureport","labels_url":"https://api.github.com/repos/youseries/ureport/issues/331/labels{/name}","comments_url":"https://api.github.com/repos/youseries/ureport/issues/331/comments","events_url":"https://api.github.com/repos/youseries/ureport/issues/331/events","html_url":"https://github.com/youseries/ureport/issues/331","id":339286383,"node_id":"MDU6SXNzdWUzMzkyODYzODM=","number":331,"title":"表达式内容：\"/img/\"+\"风险高\"+\".png\"   运行表达式计算时候报错，Exception in thread \"main\" java.util.EmptyStackException","user":{"login":"dongruilong","id":3837543,"node_id":"MDQ6VXNlcjM4Mzc1NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/3837543?v=4","gravatar_id":"","url":"https://api.github.com/users/dongruilong","html_url":"https://github.com/dongruilong","followers_url":"https://api.github.com/users/dongruilong/followers","following_url":"https://api.github.com/users/dongruilong/following{/other_user}","gists_url":"https://api.github.com/users/dongruilong/gists{/gist_id}","starred_url":"https://api.github.com/users/dongruilong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongruilong/subscriptions","organizations_url":"https://api.github.com/users/dongruilong/orgs","repos_url":"https://api.github.com/users/dongruilong/repos","events_url":"https://api.github.com/users/dongruilong/events{/privacy}","received_events_url":"https://api.github.com/users/dongruilong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T02:37:50Z","updated_at":"2018-07-09T02:37:50Z","closed_at":null,"author_association":"NONE","body":"## 为了您的问题能得到及时准确解答，请认真填写下面各个选项，感谢您的配合。\r\n\r\n*  #### 当前使用的UReport的具体版本号：\r\ncom.bstek.ureport.utils.ElCompute 类 提交版本号 5936fb5 \r\n提交时间：2018.7.4\r\n提交注释：重写表达式计算算法，大幅提高表达式计算性能\r\n\r\n*  #### 遇到的问题描述：\r\n单元格内配置表达式：\r\nF2!=null?'/img/'+ G2 +'.png':'/img/正常.png'\r\n\r\n运行的时候F2 不为空，G2=风险高\r\n\r\n*  #### 涉及到的异常信息（完整异常信息）：\r\nException in thread \"main\" java.util.EmptyStackException\r\n\tat java.util.Stack.peek(Stack.java:102)\r\n\tat java.util.Stack.pop(Stack.java:84)\r\n\tat com.bstek.ureport.utils.ElCompute.doCalculate(ElCompute.java:156)\r\n\tat com.bstek.ureport.utils.ElCompute.init(ElCompute.java:83)\r\n\tat com.bstek.ureport.utils.ElCompute.doCompute(ElCompute.java:59)\r\n\r\n运行main方法测试如下：\r\npublic static void main(String[] args) {\r\n\t\tlong start=System.currentTimeMillis();\r\n\t\tString expr=\"\\\"/img/\\\"+\\\"风险高\\\"+\\\".png\\\"\";\r\n\t\tfor(int i=0;i<1;i++) {\r\n\t\t\tElCompute el=new ElCompute();\r\n\t\t\tObject data=el.doCompute(expr);\r\n\t\t\tSystem.out.println(data);\r\n\t\t}\r\n\t\tlong end=System.currentTimeMillis();\r\n\t\tSystem.out.println(end-start);\r\n\t}\r\n\r\n"}}
{"actor":{"display_login":"dongruilong"}}