# Bug in Nullable?

**URL:** https://discourse.julialang.org/t/bug-in-nullable/6210
**Category:** General Usage
**Created:** [October 3, 2017, 12:54am UTC](https://discourse.julialang.org/t/bug-in-nullable/6210 "2017-10-03T00:54:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bhalonen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bhalonen/32/9848_2.png) [@bhalonen](https://discourse.julialang.org/u/bhalonen)
#### Post date: [October 3, 2017, 12:54am UTC](https://discourse.julialang.org/t/bug-in-nullable/6210/1 "2017-10-03T00:54:19Z")

</div>

Tried

```julia
isfinite(Nullable(1))

```

Get error

```julia
ERROR: MethodError: no method matching isfinite(::Nullable{Int64})
Closest candidates are:
  isfinite(::Float16) at float.jl:539
  isfinite(::BigFloat) at mpfr.jl:831
  isfinite(::LastMain.LastMain.DataArrays.NAtype) at /Users/brent/.julia/v0.6/DataArrays/src/predicates.jl:10
  ...

```

Version is

```julia
julia> versioninfo()
Julia Version 0.6.0
Commit 903644385b (2017-06-19 13:05 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin13.4.0)
  CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

```

---

<div class="post-metadata">

### Author: ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)
#### Post date: [October 3, 2017, 3:16am UTC](https://discourse.julialang.org/t/bug-in-nullable/6210/2 "2017-10-03T03:16:39Z")

</div>

It’s not generally the case that a method defined for some type `T` will also work on `Nullable{T}`. You can use `get()` to retrieve the underlying integer:

```julia
julia> n = Nullable(1)
Nullable{Int64}(1)

julia> isfinite(get(n))
true

```

or use broadcasting to get a Nullable result:

```julia
julia> isfinite.(n)
Nullable{Bool}(true)

```
