<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>seratch2</author_name>
  <author_url>https://blog.hatena.ne.jp/seratch2/</author_url>
  <blog_title>seratch's weblog in Japanese</blog_title>
  <blog_url>https://seratch.hatenablog.jp/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>Java との架け橋的なものをつくると一度はハマるところですね。そういえばあまり Web 上で見かけない気がするので書いておきます。 scala&gt; val i: java.lang.Integer = null i: java.lang.Integer = null scala&gt; val opt: Option[Int] = Option(i) java.lang.NullPointerException at scala.Predef$.Integer2int(Predef.scala:360) at .&lt;init&gt;(&lt;console&gt;:8) at .&lt;clinit&gt;(&lt;console&gt;) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseratch.hatenablog.jp%2Fentry%2F2013%2F08%2F29%2F080730&quot; title=&quot;java.lang.Integer をもらって Option[Int] をつくるのは要注意 - seratch&amp;#39;s weblog in Japanese&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>2013-08-29 08:07:30</published>
  <title>java.lang.Integer をもらって Option[Int] をつくるのは要注意</title>
  <type>rich</type>
  <url>https://seratch.hatenablog.jp/entry/2013/08/29/080730</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
