Revision 1862 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dynobject/impl/DefaultDynObjectManager.java

View differences:

DefaultDynObjectManager.java
802 802
            targetField.copyFrom(sourceField);
803 803
        }
804 804
        try {
805
            for (DynMethod sourceMethod : source.getDynMethods()) {
806
                target.addDynMethod(sourceMethod);
805
            DynMethod[] x = source.getDynMethods();
806
            if( x!=null ) {
807
                for (DynMethod sourceMethod : x) {
808
                    target.addDynMethod(sourceMethod);
809
                }
807 810
            }
808 811
        } catch (DynMethodException ex) {
809 812
        }

Also available in: Unified diff