Fix null access when we run integration tests (#91)
This commit is contained in:
@@ -412,6 +412,12 @@ class ELinuxDevice extends Device {
|
|||||||
Duration timeout,
|
Duration timeout,
|
||||||
Map<String, String> additionalReplacementValues =
|
Map<String, String> additionalReplacementValues =
|
||||||
const <String, String>{}}) async {
|
const <String, String>{}}) async {
|
||||||
|
if (_config == null || _config.uninstallCommand == null) {
|
||||||
|
// do nothing if uninstall command is not defined.
|
||||||
|
_logger.printTrace('uninstall command is not defined.');
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
final List<String> interpolated = interpolateCommand(
|
final List<String> interpolated = interpolateCommand(
|
||||||
_config.uninstallCommand, <String, String>{'appName': appName},
|
_config.uninstallCommand, <String, String>{'appName': appName},
|
||||||
additionalReplacementValues: additionalReplacementValues);
|
additionalReplacementValues: additionalReplacementValues);
|
||||||
|
|||||||
Reference in New Issue
Block a user