Commit b4425e3b authored by Mygod's avatar Mygod

Fix NullReferenceException

parent ac2b668a
...@@ -38,7 +38,9 @@ final class QRCodeDialog extends DialogFragment { ...@@ -38,7 +38,9 @@ final class QRCodeDialog extends DialogFragment {
import QRCodeDialog._ import QRCodeDialog._
def this(url: String) { def this(url: String) {
this() this()
getArguments.putString(KEY_URL, url) val bundle = new Bundle()
bundle.putString(KEY_URL, url)
setArguments(bundle)
} }
private def url = getArguments.getString(KEY_URL) private def url = getArguments.getString(KEY_URL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment