hapihu opened a new pull request #274: [HBASE-22461] A "NullPointerException" 
could be thrown
URL: https://github.com/apache/hbase/pull/274
 
 
   In hbase-client model the class  
"org.apache.hadoop.hbase.MetaTableAccessor"'s method getRegionInfo(final Result 
r, byte [] qualifier),A "NullPointerException" could be thrown; "r" is nullable 
here.
   
   ```java
   @Nullable
   private static RegionInfo getRegionInfo(final Result r, byte [] qualifier) {
     Cell cell = r.getColumnLatestCell(getCatalogFamily(), qualifier);
     if (cell == null) return null;
     return RegionInfo.parseFromOrNull(cell.getValueArray(),
       cell.getValueOffset(), cell.getValueLength());
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to