<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>u_osusi</author_name>
  <author_url>https://blog.hatena.ne.jp/u_osusi/</author_url>
  <blog_title>ノートの端の書き残し</blog_title>
  <blog_url>https://nigiri.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>null安全 null安全とは、nullを許容しないコンパイルルールのことを指します。 null参照は世の中のソフトウェアバグの中でも最多と言われていて、null参照を許すからダメなんだ、という思想ですね。言いたいことはわかります。 バグの原因はnull参照だ、というのは本当に正しいか ある意味では正しいのですが、自身の経験を振り返ってよく考えてみると、null参照で発生していたバグは2つのケースに分けられると思います。 正常系でもnullが想定されてたけど、それを考慮せずにnull参照してしまったケース。例えば、RPGのパーティ編成で、空欄をnullで表現していたりするとこういうことが起こり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnigiri.hatenablog.com%2Fentry%2F2025%2F12%2F24%2F152315&quot; title=&quot;null安全の正しさと誤り - ノートの端の書き残し&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-24 15:23:15</published>
  <title>null安全の正しさと誤り</title>
  <type>rich</type>
  <url>https://nigiri.hatenablog.com/entry/2025/12/24/152315</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
