message: added null checks, formatting
diff: @@ -94,7 +94,6 @@ ACesiumSunSky::ACesiumSunSky() {
  &ACesiumSunSky::HandleGeoreferenceUpdated);
  HandleGeoreferenceUpdated();
  }
  -
  }
  void ACesiumSunSky::OnConstruction(const FTransform& Transform) {
  @@ -180,10 +179,13 @@ void ACesiumSunSky::SetSkyAtmosphereVisibility(bool bVisible) {
  Warning,
  TEXT("SkyAtmosphere visible: %s"),
  bVisible ? TEXT("true") : TEXT("false"));
  + if (IsValid(SkyLight)) {
  SkyLight->SetVisibility(bVisible);
  + }
  + if (IsValid(SkyAtmosphereComponent)) {
  SkyAtmosphereComponent->SetVisibility(bVisible);
  }
  -
  +}
  void ACesiumSunSky::UpdateSkySphere() {
  if (!bMobileRendering || !SkySphereActor) {
  @@ -196,7 +198,6 @@ void ACesiumSunSky::UpdateSkySphere() {
  }
  }
  -
  void ACesiumSunSky::UpdateSun_Implementation() {
  // No C++ base implementation for now
  }
  @@ -243,7 +244,6 @@ bool ACesiumSunSky::IsDST(
  return current >= dstStart && current <= dstEnd;
  }
  -
  /** For mobile, set sky sphere to georeference location */
  void ACesiumSunSky::HandleGeoreferenceUpdated() {
  if (!Georeference) {
  