Browse Source

minor crashfix

David Rose 15 years ago
parent
commit
c80eba7088
1 changed files with 5 additions and 2 deletions
  1. 5 2
      direct/src/plugin/p3dPackage.cxx

+ 5 - 2
direct/src/plugin/p3dPackage.cxx

@@ -1449,9 +1449,12 @@ download_finished(bool success) {
            << ", failed hash check\n";
       nout << "expected: ";
       _file_spec.output_hash(nout);
-      nout << "\n     got: ";
-      _file_spec.get_actual_file()->output_hash(nout);
       nout << "\n";
+      if (_file_spec.get_actual_file() != (FileSpec *)NULL) {
+        nout << "     got: ";
+        _file_spec.get_actual_file()->output_hash(nout);
+        nout << "\n";
+      }
       
       success = false;
     }