hillion 02/05/16 09:33:41
Modified: sources/org/apache/batik/css/engine CSSEngine.java
Log:
Enhanced robustness of the CSS engine.
Revision Changes Path
1.11 +3 -2 xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java
Index: CSSEngine.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- CSSEngine.java 29 Apr 2002 12:25:05 -0000 1.10
+++ CSSEngine.java 16 May 2002 16:33:41 -0000 1.11
@@ -58,7 +58,7 @@
* This is the base class for all the CSS engines.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Stephane Hillion</a>
- * @version $Id: CSSEngine.java,v 1.10 2002/04/29 12:25:05 hillion Exp $
+ * @version $Id: CSSEngine.java,v 1.11 2002/05/16 16:33:41 hillion Exp $
*/
public abstract class CSSEngine {
@@ -1505,7 +1505,8 @@
case MutationEvent.REMOVAL:
boolean removed = false;
- if (evt.getPrevValue().length() > 0) {
+ if (evt.getPrevValue() != null &&
+ evt.getPrevValue().length() > 0) {
// Check if the style map has cascaded styles which
// come from the inline style attribute.
for (int i = getNumberOfProperties() - 1; i >= 0; --i) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]