Called C++ object pointer is null in logic/ware_descr.cc

Bug #1335430 reported by Hans Joachim Desserud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Confirmed
Low
Unassigned

Bug Description

Found by scan-build in r7020.

I don't know how strongly this is related, but it might be relevant to read through bug 1322869 when looking at this one.

Last seen in r7181.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :
Revision history for this message
SirVer (sirver) wrote :

This will crash in --dedicated.

However the correct fix is to have a dummy g_gr object that does nothing for dedicated anyways. Checking that g_gr != nullptr everywhere is not scalable.

Changed in widelands:
status: New → Confirmed
milestone: none → build19-rc1
description: updated
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

(This was not found in r7207, though the code hasn't changed since r7181, so this cannot possibly be fixed. I ran scan-build 3.6 which is the current development version so there might be a regression there.)

Revision history for this message
SirVer (sirver) wrote :

Not a strict duplicate, but the fix for 1322869 will fix or invalidate this bug as well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.