Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 1cb3cb12 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

fix: check if a job-file is loaded before computing the hash; update hash when...

fix: check if a job-file is loaded before computing the hash; update hash when new job-file is loaded
parent 78ba78c2
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ namespace HashingTool.ViewModel
RaisePropertyChanged("CanonicalizationMethods");
_customerReport.PropertyChanged += Update;
_manufacturerReport.PropertyChanged += Update;
_jobFile.PropertyChanged += Update;
}
private void Update(object sender, PropertyChangedEventArgs e)
......@@ -71,7 +72,7 @@ namespace HashingTool.ViewModel
// get {
private void UpdateReportJobDigest(ReportXMLFile reportXML)
{
if (reportXML.Valid == null || !reportXML.Valid.Value) {
if (reportXML.Valid == null || !reportXML.Valid.Value || _jobFile.XMLFile.Document == null) {
reportXML.JobDigestValueComputed = "";
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment