added a check if Starling.current is not null before accessing it in Graphics constructor. It's needed only for testing purposes. When writing integration tests for some objects that use Graphic object it always throws an exception because Staring instance is not defined due to the fact that it's mocked. So this check allows to prevent that exception and write tests.
added a check if Starling.current is not null before accessing it in Graphics constructor. It's needed only for testing purposes. When writing integration tests for some objects that use Graphic object it always throws an exception because Staring instance is not defined due to the fact that it's mocked. So this check allows to prevent that exception and write tests.