commit | 8271c6cba2bf85ca9132ae619c03e2e825db7621 | [log] [tgz] |
---|---|---|
author | Tran Le <tran.le@oracle.com> | Tue Oct 02 17:29:36 2012 -0400 |
committer | Tran Le <tran.le@oracle.com> | Tue Oct 02 17:29:36 2012 -0400 |
tree | ea29657531d0fae0066a492ab3e9b998b8f1bdae | |
parent | d0b07f76a2c537e6dcfb07c03e4b93adf201721f [diff] |
390047 - NullPointerException: Click Browse or hyperlink for persistence eclipselink.profiler property
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/Profiler.java b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/Profiler.java index f1b943c..d2bbc61 100644 --- a/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/Profiler.java +++ b/jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core/src/org/eclipse/jpt/jpa/eclipselink/core/context/persistence/Profiler.java
@@ -68,6 +68,7 @@ } public static String getProfilerClassName(String profilerValue) { - return fromPropertyValue(profilerValue).getClassName(); + Profiler profiler = fromPropertyValue(profilerValue); + return (profiler == null) ? null : profiler.getClassName(); } }