Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
09e50dba
Commit
09e50dba
authored
Oct 01, 2018
by
Sajal Narang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NPE in MapFragment
parent
b200717f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/src/main/java/app/insti/fragment/MapFragment.java
app/src/main/java/app/insti/fragment/MapFragment.java
+2
-1
No files found.
app/src/main/java/app/insti/fragment/MapFragment.java
View file @
09e50dba
...
...
@@ -94,6 +94,7 @@ import retrofit2.Call;
import
retrofit2.Callback
;
import
retrofit2.Response
;
import
static
android
.
widget
.
Toast
.
LENGTH_SHORT
;
import
static
app
.
insti
.
Constants
.
MY_PERMISSIONS_REQUEST_LOCATION
;
public
class
MapFragment
extends
Fragment
implements
TextWatcher
,
...
...
@@ -490,7 +491,7 @@ public class MapFragment extends Fragment implements TextWatcher,
@Override
public
void
onItemClick
(
AdapterView
<?>
arg0
,
View
arg1
,
int
id
,
long
arg3
)
{
if
(
adapter
.
getResultSize
()
==
0
)
{
toast
.
setText
(
message
);
toast
=
Toast
.
makeText
(
getContext
(),
message
,
LENGTH_SHORT
);
toast
.
show
();
}
else
{
String
selection
=
editText
.
getText
().
toString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment