{"action":"created","issue":{"url":"https://api.github.com/repos/odeke-em/drive/issues/79","labels_url":"https://api.github.com/repos/odeke-em/drive/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/odeke-em/drive/issues/79/comments","events_url":"https://api.github.com/repos/odeke-em/drive/issues/79/events","html_url":"https://github.com/odeke-em/drive/issues/79","id":59862687,"number":79,"title":"panic: runtime error: invalid memory address or nil pointer dereference","user":{"login":"Tawanda-m","id":7323136,"avatar_url":"https://avatars.githubusercontent.com/u/7323136?v=3","gravatar_id":"","url":"https://api.github.com/users/Tawanda-m","html_url":"https://github.com/Tawanda-m","followers_url":"https://api.github.com/users/Tawanda-m/followers","following_url":"https://api.github.com/users/Tawanda-m/following{/other_user}","gists_url":"https://api.github.com/users/Tawanda-m/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawanda-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawanda-m/subscriptions","organizations_url":"https://api.github.com/users/Tawanda-m/orgs","repos_url":"https://api.github.com/users/Tawanda-m/repos","events_url":"https://api.github.com/users/Tawanda-m/events{/privacy}","received_events_url":"https://api.github.com/users/Tawanda-m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-04T21:13:55Z","updated_at":"2015-03-05T07:17:30Z","closed_at":null,"body":"if i \r\n\r\ndrive push file.txt\r\n\r\nall is well, but if i \r\n\r\ndrive push folder\r\n\r\ni get\r\n```\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x0 pc=0x473001]\r\n\r\ngoroutine 1 [running]:\r\nruntime.panic(0x6f18c0, 0xad1dc8)\r\n\t/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6\r\ngithub.com/odeke-em/drive/src.(*Commands).remoteMod(0xc210048a00, 0xc2102d2100, 0x0, 0x0)\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:251 +0x591\r\ngithub.com/odeke-em/drive/src.(*Commands).remoteAdd(0xc210048a00, 0xc2102d2100, 0x0, 0x0)\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:289 +0x43\r\ngithub.com/odeke-em/drive/src.(*Commands).playPushChangeList(0xc210048a00, 0xc210397800, 0x23, 0x40, 0x0, ...)\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:213 +0xca\r\ngithub.com/odeke-em/drive/src.(*Commands).Push(0xc210048a00, 0x0, 0x0)\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:105 +0xac4\r\nmain.(*pushCmd).Run(0xc210037a20, 0xc21000a030, 0xa, 0xa)\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:334 +0x169\r\ngithub.com/rakyll/command.Run()\r\n\t/home/tawanda/gocode/src/github.com/rakyll/command/command.go:155 +0x81\r\ngithub.com/rakyll/command.ParseAndRun()\r\n\t/home/tawanda/gocode/src/github.com/rakyll/command/command.go:162 +0x1f\r\nmain.main()\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/cmd/drive/main.go:62 +0x21f2\r\n\r\ngoroutine 3 [syscall]:\r\nos/signal.loop()\r\n\t/usr/lib/go/src/pkg/os/signal/signal_unix.go:21 +0x1e\r\ncreated by os/signal.init·1\r\n\t/usr/lib/go/src/pkg/os/signal/signal_unix.go:27 +0x31\r\n\r\ngoroutine 4 [chan receive]:\r\ngithub.com/odeke-em/drive/src.func·013()\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:47 +0x3b\r\ncreated by github.com/odeke-em/drive/src.(*Commands).Push\r\n\t/home/tawanda/gocode/src/github.com/odeke-em/drive/src/push.go:50 +0x2cc\r\n\r\ngoroutine 10 [IO wait]:\r\nnet.runtime_pollWait(0x7f263d285a18, 0x72, 0x0)\r\n\t/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a\r\nnet.(*pollDesc).Wait(0xc2102d4140, 0x72, 0x7f263d2840e8, 0xb)\r\n\t/usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34\r\nnet.(*pollDesc).WaitRead(0xc2102d4140, 0xb, 0x7f263d2840e8)\r\n\t/usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30\r\nnet.(*netFD).Read(0xc2102d40e0, 0xc2102b4000, 0x800, 0x800, 0x0, ...)\r\n\t/usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0\r\nnet.(*conn).Read(0xc2102cf0f0, 0xc2102b4000, 0x800, 0x800, 0x411d9f, ...)\r\n\t/usr/lib/go/src/pkg/net/net.go:122 +0xc5\r\ncrypto/tls.(*block).readFromUntil(0xc2102cd420, 0x7f263d285c18, 0xc2102cf0f0, 0x5, 0xc2102cf0f0, ...)\r\n\t/usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6\r\ncrypto/tls.(*Conn).readRecord(0xc2102e0000, 0x17, 0x0, 0x8)\r\n\t/usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107\r\ncrypto/tls.(*Conn).Read(0xc2102e0000, 0xc2102bf000, 0x1000, 0x1000, 0x0, ...)\r\n\t/usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135\r\nbufio.(*Reader).fill(0xc210286f60)\r\n\t/usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110\r\nbufio.(*Reader).Peek(0xc210286f60, 0x1, 0x0, 0x0, 0x0, ...)\r\n\t/usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb\r\nnet/http.(*persistConn).readLoop(0xc2102de000)\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:528 +0x607\r\n\r\ngoroutine 6 [syscall]:\r\nruntime.goexit()\r\n\t/usr/lib/go/src/pkg/runtime/proc.c:1394\r\n\r\ngoroutine 7 [IO wait]:\r\nnet.runtime_pollWait(0x7f263d285ac0, 0x72, 0x0)\r\n\t/usr/lib/go/src/pkg/runtime/netpoll.goc:116 +0x6a\r\nnet.(*pollDesc).Wait(0xc21006a5a0, 0x72, 0x7f263d2840e8, 0xb)\r\n\t/usr/lib/go/src/pkg/net/fd_poll_runtime.go:81 +0x34\r\nnet.(*pollDesc).WaitRead(0xc21006a5a0, 0xb, 0x7f263d2840e8)\r\n\t/usr/lib/go/src/pkg/net/fd_poll_runtime.go:86 +0x30\r\nnet.(*netFD).Read(0xc21006a540, 0xc210098800, 0x400, 0x400, 0x0, ...)\r\n\t/usr/lib/go/src/pkg/net/fd_unix.go:204 +0x2a0\r\nnet.(*conn).Read(0xc210000600, 0xc210098800, 0x400, 0x400, 0x102d4000, ...)\r\n\t/usr/lib/go/src/pkg/net/net.go:122 +0xc5\r\ncrypto/tls.(*block).readFromUntil(0xc210067c90, 0x7f263d285c18, 0xc210000600, 0x5, 0xc210000600, ...)\r\n\t/usr/lib/go/src/pkg/crypto/tls/conn.go:459 +0xb6\r\ncrypto/tls.(*Conn).readRecord(0xc210051780, 0x17, 0x0, 0x8)\r\n\t/usr/lib/go/src/pkg/crypto/tls/conn.go:539 +0x107\r\ncrypto/tls.(*Conn).Read(0xc210051780, 0xc2102c7000, 0x1000, 0x1000, 0x0, ...)\r\n\t/usr/lib/go/src/pkg/crypto/tls/conn.go:897 +0x135\r\nbufio.(*Reader).fill(0xc210286960)\r\n\t/usr/lib/go/src/pkg/bufio/bufio.go:91 +0x110\r\nbufio.(*Reader).Peek(0xc210286960, 0x1, 0x0, 0x0, 0x0, ...)\r\n\t/usr/lib/go/src/pkg/bufio/bufio.go:119 +0xcb\r\nnet/http.(*persistConn).readLoop(0xc210058780)\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:687 +0xb7\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:528 +0x607\r\n\r\ngoroutine 8 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc210058780)\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:791 +0x271\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e\r\n\r\ngoroutine 11 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc2102de000)\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:791 +0x271\r\ncreated by net/http.(*Transport).dialConn\r\n\t/usr/lib/go/src/pkg/net/http/transport.go:529 +0x61e\r\n\r\ngoroutine 40 [finalizer wait]:\r\nruntime.park(0x411d70, 0xad5b00, 0xad3908)\r\n\t/usr/lib/go/src/pkg/runtime/proc.c:1342 +0x66\r\nrunfinq()\r\n\t/usr/lib/go/src/pkg/runtime/mgc0.c:2279 +0x84\r\nruntime.goexit()\r\n\t/usr/lib/go/src/pkg/runtime/proc.c:1394\r\n\r\ngoroutine 39 [sleep]:\r\ntime.Sleep(0xbebc200)\r\n\t/usr/lib/go/src/pkg/runtime/time.goc:31 +0x31\r\ngithub.com/cheggaaa/pb.(*ProgressBar).writer(0xc21035e780)\r\n\t/home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:332 +0x61\r\ncreated by github.com/cheggaaa/pb.(*ProgressBar).Start\r\n\t/home/tawanda/gocode/src/github.com/cheggaaa/pb/pb.go:101 +0x70\r\n\r\n\r\n```\r\n\r\nplease assist, how do i fix this issue"},"comment":{"url":"https://api.github.com/repos/odeke-em/drive/issues/comments/77317947","html_url":"https://github.com/odeke-em/drive/issues/79#issuecomment-77317947","issue_url":"https://api.github.com/repos/odeke-em/drive/issues/79","id":77317947,"user":{"login":"Tawanda-m","id":7323136,"avatar_url":"https://avatars.githubusercontent.com/u/7323136?v=3","gravatar_id":"","url":"https://api.github.com/users/Tawanda-m","html_url":"https://github.com/Tawanda-m","followers_url":"https://api.github.com/users/Tawanda-m/followers","following_url":"https://api.github.com/users/Tawanda-m/following{/other_user}","gists_url":"https://api.github.com/users/Tawanda-m/gists{/gist_id}","starred_url":"https://api.github.com/users/Tawanda-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tawanda-m/subscriptions","organizations_url":"https://api.github.com/users/Tawanda-m/orgs","repos_url":"https://api.github.com/users/Tawanda-m/repos","events_url":"https://api.github.com/users/Tawanda-m/events{/privacy}","received_events_url":"https://api.github.com/users/Tawanda-m/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T07:17:30Z","updated_at":"2015-03-05T07:17:30Z","body":"i cant remember the folder i initialised your repo in, will go automagically send the files to the right dir no matter what folder i run this from ?"}}