# Panic while migrating

**URL:** <https://discuss.dgraph.io/t/panic-while-migrating/16913>\
**Category:** Dgraph\
**Created:** [February 27, 2022, 8:59pm UTC](https://discuss.dgraph.io/t/panic-while-migrating/16913 "2022-02-27T20:59:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![droslean](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/droslean/32/9583_2.png) [@droslean](https://discuss.dgraph.io/u/droslean)\
**Post date:** [February 27, 2022, 8:59pm UTC](https://discuss.dgraph.io/t/panic-while-migrating/16913/1 "2022-02-27T20:59:10Z")

</div>

```auto
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x80 pc=0x1be656a]

goroutine 1 [running]:
github.com/dgraph-io/dgraph/dgraph/cmd/migrate.populateReferencedByColumns(0x1e38a60)
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/migrate/table_info.go:250 +0x14a
github.com/dgraph-io/dgraph/dgraph/cmd/migrate.run(0xc00263fcb8)
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/migrate/run.go:121 +0x4e7
github.com/dgraph-io/dgraph/dgraph/cmd/migrate.init.0.func1(0xc00020ef00, {0xc00015b4c0, 0x4, 0x4})
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/migrate/run.go:44 +0x25
github.com/spf13/cobra.(*Command).execute(0xc00020ef00, {0xc00015b440, 0x4, 0x4})
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x5f8
github.com/spf13/cobra.(*Command).ExecuteC(0x32faa80)
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fc
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/dgraph-io/dgraph/dgraph/cmd.Execute()
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/cmd/root.go:81 +0x50
main.main()
	/ext-go/1/src/github.com/dgraph-io/dgraph/dgraph/main.go:112 +0x116

```
