| commit | cf4806f5c4d272e87d485feb8c379ad059058b06 | [log] [tgz] |
|---|---|---|
| author | Kentarou Fukuda <kentarou@jp.ibm.com> | Wed Feb 05 15:19:13 2020 +0900 |
| committer | Kentarou Fukuda <kentarou@jp.ibm.com> | Wed Feb 05 15:19:13 2020 +0900 |
| tree | d4bb83d132896ca77b63ff683a8dd8f1a5820ace | |
| parent | 4f8fd3ec25c66208d34ba78d794a43bc7d3ab07e [diff] |
Bug 559853 Change-Id: I8ac2bd01c5daf74a26eb84f8f6d2616f76e43103
diff --git a/plugins/org.eclipse.actf.visualization.engines.lowvision/src/org/eclipse/actf/visualization/internal/engines/lowvision/PageElement.java b/plugins/org.eclipse.actf.visualization.engines.lowvision/src/org/eclipse/actf/visualization/internal/engines/lowvision/PageElement.java index 3268587..519ab23 100644 --- a/plugins/org.eclipse.actf.visualization.engines.lowvision/src/org/eclipse/actf/visualization/internal/engines/lowvision/PageElement.java +++ b/plugins/org.eclipse.actf.visualization.engines.lowvision/src/org/eclipse/actf/visualization/internal/engines/lowvision/PageElement.java
@@ -131,15 +131,18 @@ String opacityStr = style.getOpacity(); try { - double opacity = Double.parseDouble(opacityStr); - if (opacity < 1) { - bOpacity = true; + if (opacityStr != null) { + double opacity = Double.parseDouble(opacityStr); + if (opacity < 1) { + bOpacity = true; + } } - } catch (NumberFormatException e1) { + } catch (Exception e1) { DebugPrintUtil.devOrDebugPrintStackTrace(e1); } - //System.out.println(style.getXPath() + ":\t" + fgStr + " / " + bgStr + " / " + opacityStr); + // System.out.println(style.getXPath() + ":\t" + fgStr + " / " + bgStr + + // " / " + opacityStr); try { foregroundColor = (new ColorCSS(fgStr)).toInt();