hbons/SparkleShare — Issue #369: Crash when offline
Author: zombor
Created: 2011-10-12 18:43:04+00:00
State: open

If I'm not connected to the internet and I modify a sparkleshare connected file, the program will eventually crash. Expected behavior would be to delay the push to the origin until the internet connection is restored.

Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: fatal: The remote end hung up unexpectedly
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: 07:17:58 [SyncDown][PRIVATE] Error
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: 07:17:58 [Cmd] /opt/local/bin/git add --all
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: 07:17:58 [Git][PRIVATE] Changes staged
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: 07:17:58 [Cmd] /opt/local/bin/git commit -m "Changes made by SparkleShare"
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: 07:17:58 [Commit][PRIVATE] Changes made by SparkleShare
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: 07:17:58 [Cmd] /opt/local/bin/git push origin master
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: ssh: Could not resolve hostname home.zombor.net: nodename nor servname provided, or not known
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: fatal: The remote end hung up unexpectedly
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: Unhandled Exception: System.ArgumentNullException: Argument cannot be null.
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: Parameter name: value
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at MonoMac.AppKit.NSMenuItem.set_Image (MonoMac.AppKit.NSImage value) [0x00000] in :0
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at SparkleShare.SparkleStatusIcon.CreateMenu () [0x00000] in :0
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at SparkleShare.SparkleStatusIcon+c__AnonStorey4.<>m__17 () [0x00000] in :0
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at MonoMac.Foundation.NSActionDispatcher.Apply () [0x00000] in :0
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at (wrapper native-to-managed) object:[MonoMac.Foundation.NSActionDispatcher:Void Apply()] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector)
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at (wrapper managed-to-native) MonoMac.AppKit.NSApplication:NSApplicationMain (int,string[])
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at MonoMac.AppKit.NSApplication.Main (System.String[] args) [0x00000] in :0
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at SparkleShare.SparkleUI.Run () [0x00000] in :0
Oct 12 07:17:58 sc-mac [0x0-0x545545].org.sparkleshare.sparkleshare[41648]: at SparkleShare.SparkleShare.Main (System.String[] args) [0x00000] in :0
Oct 12 07:17:58 sc-mac com.apple.launchd.peruser.501[313] ([0x0-0x545545].org.sparkleshare.sparkleshare[41648]): Exited with exit code: 1