summaryrefslogtreecommitdiff
path: root/cmds/incident_helper
diff options
context:
space:
mode:
authorYi Jin <jinyithu@google.com>2018-06-22 16:51:40 -0700
committerYi Jin <jinyithu@google.com>2018-06-22 16:51:40 -0700
commit908c02f5c15d21406b282c7946cee2c87685b640 (patch)
treeda31bb3326c5526995ea7141d24a9320ab449191 /cmds/incident_helper
parent6b1c5e923f5fb8ce0cf74bcb7e7e035e0da9b5b5 (diff)
Add kernel version to incident report
Bug: 110230810 Test: atest incidentd_test Change-Id: I502b34f23d61a7346d79ff0dc378add8461d2d27
Diffstat (limited to 'cmds/incident_helper')
-rw-r--r--cmds/incident_helper/src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/incident_helper/src/main.cpp b/cmds/incident_helper/src/main.cpp
index 418dc3fad761..5b6ac7af539c 100644
--- a/cmds/incident_helper/src/main.cpp
+++ b/cmds/incident_helper/src/main.cpp
@@ -73,7 +73,8 @@ static TextParserBase* selectParser(int section) {
case 2006:
return new BatteryTypeParser();
default:
- return NULL;
+ // Return no op parser when no specific ones are implemented.
+ return new NoopParser();
}
}