This commit is contained in:
shadowik 2022-12-11 22:51:28 +04:00
parent a20bad8336
commit 3e9def9597
2 changed files with 6 additions and 1 deletions

View File

@ -56,5 +56,10 @@ namespace DoubleDeckerBus
{
return new DrawingObjectBus(data.CreateDrawningCar());
}
public DrawingBus getBus()
{
return _bus;
}
}
}

View File

@ -31,7 +31,7 @@ namespace DoubleDeckerBus
{
try
{
if (bus.getBus(bus.Get_bus()) == null)
if (bus.getBus() == null)
{
throw new NullReferenceException();
}