Commit 65e57507 authored by Vijay Dhameliya's avatar Vijay Dhameliya Committed by Albert Astals Cid
Browse files

Restring addition of null supernovae objects to supernovaecomponent list

While loading data for supernovae, there seems error in reading file supernovae.dat  so it leads to creation of dummy supernovae object which leads to various error during run time of Kstars. So lets avoid creation of such dummy supernovae objects.
This fixes attached bug too.

Approved by Henry de Valence

FIXED-IN: 4.11.3
BUGS: 322848
REVIEW: 112879
parent 69a81fac
......@@ -91,6 +91,9 @@ void SupernovaeComponent::loadData()
Supernova *sup=0;
row_content = snParser.ReadNextRow();
if(row_content["serialNo"].toString() == "Null")
continue;
serialNo = row_content["serialNo"].toString();
hostGalaxy = row_content["hostGalaxy"].toString();
date = row_content["date"].toString();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment