X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fschema%2Fprovider%2Fimpl%2FYangTextSchemaSourceSerializationProxy.java;h=39302e4f5621865130ef2c307843095af93862ae;hp=6e6c6a88f1086370b8a8a4073b361eb3c94310ef;hb=40723a37cc98de6c7dc396ca2558f7ef51e7337a;hpb=0e3c15b610f8824ba4807308a49b4478477efbb0 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java index 6e6c6a88f1..39302e4f56 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/YangTextSchemaSourceSerializationProxy.java @@ -34,7 +34,7 @@ public class YangTextSchemaSourceSerializationProxy implements Serializable { } public YangTextSchemaSource getRepresentation() { - return YangTextSchemaSource.delegateForByteSource(RevisionSourceIdentifier.create(name, Optional.of(revision)), - ByteSource.wrap(schemaSource)); + return YangTextSchemaSource.delegateForByteSource( + RevisionSourceIdentifier.create(name, Optional.fromNullable(revision)), ByteSource.wrap(schemaSource)); } }