- public static @Nonnull DOMRpcIdentifier create(final @Nonnull SchemaPath type, final @Nullable YangInstanceIdentifier contextReference) {
- if (contextReference == null) {
+ public static @Nonnull DOMRpcIdentifier create(final @Nonnull SchemaPath type,
+ final @Nullable YangInstanceIdentifier contextReference) {
+ if (contextReference == null || contextReference.isEmpty()) {