Fix a nullness thinko 11/67211/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 16 Jan 2018 16:18:04 +0000 (17:18 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 17 Jan 2018 10:27:36 +0000 (11:27 +0100)
commitb4e30ef6985789be1c7f73579b39791e03a7660c
tree4df1ad0d6c73cf7b2aa8a18181937a077eeda360
parent051832edc92741112ecc244e68d00f19c7cd33d8
Fix a nullness thinko

toRevision cannot reasonably be null, as it already is an Optional,
hence the check here is incorrect and should instead check for
non-presence.

Change-Id: I93658ce5993aed1a02f4ad25121e11b3f31d356a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/ModuleDependencySort.java