Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Here is related code:
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException { Configuration conf = context.getConfiguration(); ... if (context != null) { this.context = context; getCounter = TableRecordReaderImpl.retrieveGetCounterWithStringsParams(context); }
context was dereferenced first, leaving the null check ineffective.