You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by jx...@apache.org on 2012/08/30 18:34:58 UTC

svn commit: r1379007 - /hbase/trunk/examples/thrift/DemoClient.pl

Author: jxiang
Date: Thu Aug 30 16:34:58 2012
New Revision: 1379007

URL: http://svn.apache.org/viewvc?rev=1379007&view=rev
Log:
HBASE-6685 Thrift DemoClient.pl got NullPointerException

Modified:
    hbase/trunk/examples/thrift/DemoClient.pl

Modified: hbase/trunk/examples/thrift/DemoClient.pl
URL: http://svn.apache.org/viewvc/hbase/trunk/examples/thrift/DemoClient.pl?rev=1379007&r1=1379006&r2=1379007&view=diff
==============================================================================
--- hbase/trunk/examples/thrift/DemoClient.pl (original)
+++ hbase/trunk/examples/thrift/DemoClient.pl Thu Aug 30 16:34:58 2012
@@ -141,7 +141,6 @@ $client->mutateRow ( $demo_table, $key, 
 
 # this row name is valid utf8
 $key = "foo";
-# $mutations = [ Hbase::Mutation->new ( column => "entry:$key", value => $valid ) ];
 # This is another way to use the Mutation class
 my $mutation = Hbase::Mutation->new ();
 $mutation->{column} = "entry:$key";
@@ -151,7 +150,7 @@ $client->mutateRow ( $demo_table, $key, 
 
 # non-utf8 is not allowed in row names
 eval {
-	$mutations = [ Hbase::Mutation->new ( column => "entry:$key", value => $invalid ) ];
+	$mutations = [ Hbase::Mutation->new ( { column => "entry:$key", value => $invalid } ) ];
 	# this can throw a TApplicationException (HASH) error
 	$client->mutateRow ($demo_table, $key, $mutations);
 	die ("shouldn't get here!");