Use odex_location instead of oat_file->GetLocation.

oat_file might be null at this point.

Test: m
Bug: 177175508
Bug: 183824895
Change-Id: I945b8a3053ff2ea1967758a621b7e88c3de1f222
Merged-In: I945b8a3053ff2ea1967758a621b7e88c3de1f222
(cherry picked from commit c07e873ddb17620c18420cf2bfcf76b1978dc291)
diff --git a/runtime/oat_file_manager.cc b/runtime/oat_file_manager.cc
index 814d69d..22044f4 100644
--- a/runtime/oat_file_manager.cc
+++ b/runtime/oat_file_manager.cc
@@ -347,7 +347,7 @@
       }
       if (dex_files.empty()) {
         ScopedTrace failed_to_open_dex_files("FailedToOpenDexFilesFromOat");
-        error_msgs->push_back("Failed to open dex files from " + oat_file->GetLocation());
+        error_msgs->push_back("Failed to open dex files from " + odex_location);
       } else {
         // Opened dex files from an oat file, madvise them to their loaded state.
          for (const std::unique_ptr<const DexFile>& dex_file : dex_files) {