Skip to content

Commit 364769e

Browse files
author
xsorifc28
committed
Gradle plugin update, null check for Education school name & year.
1 parent c4602a9 commit 364769e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.1.0-beta1'
8+
classpath 'com.android.tools.build:gradle:2.1.2'
99
}
1010
}
1111

simple-fb/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ buildscript {
5252
jcenter()
5353
}
5454
dependencies {
55-
classpath 'com.android.tools.build:gradle:2.1.0-beta1'
55+
classpath 'com.android.tools.build:gradle:2.1.2'
5656
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
5757
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
5858

simple-fb/src/main/java/com/sromku/simple/fb/entities/Education.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ public class Education {
3737
private String mType;
3838

3939
public String getSchool() {
40-
return mSchool.getName();
40+
return mSchool == null ? null : mSchool.getName();
4141
}
4242

4343
public String getDegree() {
4444
return mDegree == null ? null : mDegree.getName();
4545
}
4646

4747
public String getYear() {
48-
return mYear.getName();
48+
return mYear == null ? null : mYear.getName();
4949
}
5050

5151
public List<String> getConcentrations() {

0 commit comments

Comments
 (0)