package me.ykrank.s1next.viewmodel;

import android.databinding.ObservableField;
import android.net.Uri;
import android.view.View;

import me.ykrank.s1next.data.api.model.Note;
import me.ykrank.s1next.view.activity.PostListGatewayActivity;


public final class NoteViewModel {

    public final ObservableField<Note> data = new ObservableField<>();

    public View.OnClickListener clickNote() {
        return v -> {
            PostListGatewayActivity.start(v.getContext(), Uri.parse(data.get().getUrl()));
        };
    }
}

@@ -98,16 +98,47 @@
 et.Uri;%0A
+import android.text.TextUtils;%0A
 import a
@@ -442,16 +442,109 @@
  v -%3E %7B%0A
+            String url = data.get().getUrl();%0A            if (!TextUtils.isEmpty(url)) %7B%0A    
         
@@ -607,30 +607,28 @@
 rse(
-data.get().getUrl()));
+url));%0A            %7D
 %0A   

Fix one null exception