forked from upstream-mirrors/OpenTracks
ExportImportTest: only cleanup if necessary.
This commit is contained in:
+3
-1
@@ -142,7 +142,9 @@ public class ExportImportTest {
|
||||
|
||||
@After
|
||||
public void tearDown() {
|
||||
contentProviderUtils.deleteTrack(context, trackId);
|
||||
if (trackId != null) {
|
||||
contentProviderUtils.deleteTrack(context, trackId);
|
||||
}
|
||||
if (importTrackId != null) {
|
||||
contentProviderUtils.deleteTrack(context, importTrackId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user