Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
c79dd668
Commit
c79dd668
authored
May 25, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #461 ContactEditor.editAlias NullPointerException.
If contact is null no options menu created.
parent
e9f664f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ContactEditor.java
app/src/main/java/com/xabber/android/ui/ContactEditor.java
+5
-1
No files found.
app/src/main/java/com/xabber/android/ui/ContactEditor.java
View file @
c79dd668
...
@@ -26,7 +26,11 @@ public class ContactEditor extends ContactViewer {
...
@@ -26,7 +26,11 @@ public class ContactEditor extends ContactViewer {
@Override
@Override
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
public
boolean
onCreateOptionsMenu
(
Menu
menu
)
{
getMenuInflater
().
inflate
(
R
.
menu
.
contact_viewer
,
menu
);
RosterContact
rosterContact
=
RosterManager
.
getInstance
().
getRosterContact
(
getAccount
(),
getBareAddress
());
if
(
rosterContact
!=
null
)
{
getMenuInflater
().
inflate
(
R
.
menu
.
contact_viewer
,
menu
);
}
return
true
;
return
true
;
}
}
...
...
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