Fix null access when we run integration tests (#91)
This commit is contained in:
committed by
GitHub
parent
7fd1502d58
commit
87bfe82298
@@ -412,6 +412,12 @@ class ELinuxDevice extends Device {
|
||||
Duration timeout,
|
||||
Map<String, String> additionalReplacementValues =
|
||||
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(
|
||||
_config.uninstallCommand, <String, String>{'appName': appName},
|
||||
additionalReplacementValues: additionalReplacementValues);
|
||||
|
||||
Reference in New Issue
Block a user