diff --git a/src/java/org/apache/hadoop/hbase/client/Get.java b/src/java/org/apache/hadoop/hbase/client/Get.java index 293a6fe4f66..769f7a9b340 100644 --- a/src/java/org/apache/hadoop/hbase/client/Get.java +++ b/src/java/org/apache/hadoop/hbase/client/Get.java @@ -151,7 +151,11 @@ public class Get implements Writable { public Get addColumn(final byte [] column) { if (column == null) return this; byte [][] split = KeyValue.parseColumn(column); - addColumn(split[0], split[1]); + if (split.length > 1 && split[1] != null && split[1].length > 0) { + addColumn(split[0], split[1]); + } else { + addFamily(split[0]); + } return this; }