# ERROR: LoadError: UndefRefError: access to undefined reference

**URL:** <https://discourse.julialang.org/t/error-loaderror-undefreferror-access-to-undefined-reference/33683>\
**Category:** General Usage\
**Created:** [January 23, 2020, 5:21am UTC](https://discourse.julialang.org/t/error-loaderror-undefreferror-access-to-undefined-reference/33683 "2020-01-23T05:21:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [January 23, 2020, 6:44am UTC](https://discourse.julialang.org/t/error-loaderror-undefreferror-access-to-undefined-reference/33683/2 "2020-01-23T06:44:00Z")

</div>

It is very likely that you have not initialized elements of `coord`, but it is hard to say more without a [self-contained example](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757). Cf

```julia
julia> Array{Any}(undef, 1)[1]
ERROR: UndefRefError: access to undefined reference
Stacktrace:
 [1] getindex(::Array{Any,1}, ::Int64) at ./array.jl:787
 [2] top-level scope at REPL[1]:1

```

---

_[View the full topic](https://discourse.julialang.org/t/error-loaderror-undefreferror-access-to-undefined-reference/33683)._
