<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/accessed-nulls-c5r29fbng" -->

---
title: Accessed Nulls | daily.dev
description: A code snippet is provided that connects to an Access database and includes a null check issue.
canonical: https://daily.dev/posts/accessed-nulls-c5r29fbng
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Accessed Nulls | daily.dev
og:description: A code snippet is provided that connects to an Access database and includes a null check issue.
og:url: https://daily.dev/posts/accessed-nulls-c5r29fbng
og:image: https://api.daily.dev/og/posts/C5R29fBng.png
og:image:alt: Accessed Nulls
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Accessed Nulls

**[The Daily WTF](https://daily.dev/sources/thedailywtf)** · 2 min read · 5 upvotes · 1 comments

## Summary

A code snippet is provided that connects to an Access database and includes a null check issue.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://thedailywtf.com/articles/accessed-nulls>

## Community discussion

Top comments from developers on daily.dev.

**@randy** · 1 upvotes

> I think the bigger WTF is this:
>
> ```
> Result result = new Result(00, new Date(), consumptions);
> ```
> In a `void` method... Maybe it's that the snippet provided doesn't say what they're doing with it, but it seems like it should `return` something, and doesn't.

---

Tags: [#java](https://daily.dev/tags/java), [#logging](https://daily.dev/tags/logging)

[View this post on daily.dev](https://daily.dev/posts/accessed-nulls-c5r29fbng)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Accessed Nulls","url":"https://daily.dev/posts/accessed-nulls-c5r29fbng","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/accessed-nulls-c5r29fbng"},"datePublished":"2024-05-13T11:40:48.757Z","dateModified":"2024-05-13T11:40:46.775Z","description":"A code snippet is provided that connects to an Access database and includes a null check issue.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b1b05f1d37d4ce032f91ef813127d14?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8b1b05f1d37d4ce032f91ef813127d14?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"The Daily WTF","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Daily WTF","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/d21a6aa61a7244d893a3b3284df8e2ef","url":"https://daily.dev/sources/thedailywtf"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/accessed-nulls-c5r29fbng","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"java,logging","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Daily WTF","item":"https://daily.dev/sources/thedailywtf"},{"@type":"ListItem","position":3,"name":"Accessed Nulls"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/accessed-nulls-c5r29fbng","comment":[{"@type":"Comment","text":"I think the bigger WTF is this:\nResult result = new Result(00, new Date(), consumptions);\n\nIn a void method… Maybe it’s that the snippet provided doesn’t say what they’re doing with it, but it seems like it should return something, and doesn’t.","datePublished":"2024-05-13T13:41:19.212Z","url":"https://daily.dev/posts/C5R29fBng#c-HgWGgowqE","author":{"@type":"Person","name":"Randy","url":"https://daily.dev/randy","image":"https://media.daily.dev/image/upload/s--UjV4-KkB--/f_auto/v1708097210/avatars/avatar_HXYbbGcBO38Rfv7RrCBdA"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

