summaryrefslogtreecommitdiff
authorLei Qian <lei.qian@amlogic.com>2018-01-11 16:48:56 (GMT)
committer Lei Qian <lei.qian@amlogic.com>2018-01-11 16:55:13 (GMT)
commit1325c939db04eaacbf01c9c4999719da0e3bd200 (patch)
tree8070cd3e57770f93e7b2d424c2268d96577a4947
parent973601bd4d11ded1a44cd0157c6359c4307c7dbd (diff)
downloadTvInput-1325c939db04eaacbf01c9c4999719da0e3bd200.zip
TvInput-1325c939db04eaacbf01c9c4999719da0e3bd200.tar.gz
TvInput-1325c939db04eaacbf01c9c4999719da0e3bd200.tar.bz2
DTVInputService: fix null point error[1/1]
PD# 158599 Change-Id: Ie6a723cfbd372ce7d3e2fc4b3ba30d5af4070468 Signed-off-by: Lei Qian <lei.qian@amlogic.com>
Diffstat
-rw-r--r--DroidLogicTvInput/src/com/droidlogic/tvinput/services/DTVInputService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/DroidLogicTvInput/src/com/droidlogic/tvinput/services/DTVInputService.java b/DroidLogicTvInput/src/com/droidlogic/tvinput/services/DTVInputService.java
index 6164612..6ca7ff4 100644
--- a/DroidLogicTvInput/src/com/droidlogic/tvinput/services/DTVInputService.java
+++ b/DroidLogicTvInput/src/com/droidlogic/tvinput/services/DTVInputService.java
@@ -1754,7 +1754,7 @@ public class DTVInputService extends DroidLogicTvInputService implements TvContr
public void check_program_pmt_rating_block(int ServiceId, String json)
{
//Log.d(TAG, "check_program_pmt_rating_block cur channel: " + mCurrentChannel.getServiceId() +" PMT ServiceId:" + ServiceId + " ratings:" + json);
- if ((mCurrentChannel.isAtscChannel() || isAtscForcedStandard())) {
+ if ((mCurrentChannel != null && mCurrentChannel.isAtscChannel()) || isAtscForcedStandard()) {
//Log.d(TAG, "PMT get mCurrentPmtContentRatings");
mCurrentPmtContentRatings = DroidLogicTvUtils.parseDRatings(json);
if (DEBUG) Log.d(TAG, "PMT save mCurrentPmtContentRatings = " + Program.contentRatingsToString(mCurrentPmtContentRatings));