# Null in .parameters()

**URL:** <https://community.stardog.com/t/null-in-parameters/700>\
**Category:** Support\
**Created:** [November 19, 2017, 11:44am UTC](https://community.stardog.com/t/null-in-parameters/700 "2017-11-19T11:44:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmottestad](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/hmottestad/32/19_2.png) [@hmottestad](https://community.stardog.com/u/hmottestad)\
**Post date:** [November 19, 2017, 11:44am UTC](https://community.stardog.com/t/null-in-parameters/700/1 "2017-11-19T11:44:56Z")

</div>

Hi,

I have just realised that if you add a NULL value to a .parameter() in java, then the parameter will simply be removed.

Ex.

```auto
IRI temp = null;

connection.ask("ASK {?temp a rdfs:Class}").parameter("temp", temp);

```

Would be great if parameter threw a NullPointerException to be honest. Would make it easier to hunt down bugs.

Cheers,  
Håvard

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [December 3, 2017, 11:45am UTC](https://community.stardog.com/t/null-in-parameters/700/2 "2017-12-03T11:45:06Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
