Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash due to nullptr access of pPointingsource in simulator
Creating a new profile with just simulator (Mount: none, Aux mount: none) causes a crash due to: (gdb) bt at /home/tstibor/dev/astronomy/phd2/gear_simulator.cpp:1010 at /home/tstibor/dev/astronomy/phd2/gear_simulator.cpp:1372 (camera=0x555556861400, duration=1000, img=..., captureOptions=3, subframe=...) at /home/tstibor/dev/astronomy/phd2/camera.cpp:1475 (gdb) p img $4 = (usImage &) @0x555556620d70: {ImageData = 0x7fffec003510, Size = {x = 752, y = 580}, Subframe = {x = 0, y = 0, width = 0, height = 0}, NPixels = 436160, Min = 0, Max = 0, FiltMin = 0, FiltMax = 0, ImgStartTime = {static ms_country = wxDateTime::Country_Unknown, static TIME_T_FACTOR = 1000, m_time = {m_ll = 1558298246075}}, ImgExpDur = 1000, ImgStackCnt = 1, BitsPerPixel = 16 '\020', Pedestal = 0, FrameNum = 0} (gdb) p pPointingSource $5 = (Scope *) 0x0
- Loading branch information